Query time 0.00134
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "9.00"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "0.14"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_shippings",
"access_type": "range",
"possible_keys": [
"shipping_id",
"c_status"
],
"key": "shipping_id",
"used_key_parts": [
"shipping_id"
],
"key_length": "3",
"rows_examined_per_scan": 4,
"rows_produced_per_join": 0,
"filtered": "1.33",
"cost_info": {
"read_cost": "5.61",
"eval_cost": "0.01",
"prefix_cost": "5.62",
"data_read_per_join": "126"
},
"used_columns": [
"shipping_id",
"destination",
"min_weight",
"max_weight",
"usergroup_ids",
"rate_calculation",
"service_id",
"service_params",
"position",
"status",
"free_shipping",
"is_address_required"
],
"attached_condition": "((`webmarco`.`cscart_shippings`.`status` = 'A') and (`webmarco`.`cscart_shippings`.`shipping_id` in (10,9,48,49)) and (`webmarco`.`cscart_shippings`.`min_weight` <= 0.001) and ((`webmarco`.`cscart_shippings`.`max_weight` >= 0.001) or (`webmarco`.`cscart_shippings`.`max_weight` = 0.00)) and ((`webmarco`.`cscart_shippings`.`usergroup_ids` = '') or find_in_set(0,`webmarco`.`cscart_shippings`.`usergroup_ids`) or find_in_set(1,`webmarco`.`cscart_shippings`.`usergroup_ids`)))"
}
},
{
"table": {
"table_name": "cscart_shipping_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"shipping_id",
"lang_code"
],
"key_length": "9",
"ref": [
"webmarco.cscart_shippings.shipping_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.05",
"eval_cost": "0.01",
"prefix_cost": "5.69",
"data_read_per_join": "52"
},
"used_columns": [
"shipping_id",
"lang_code",
"shipping",
"delivery_time",
"description"
]
}
},
{
"table": {
"table_name": "cscart_shipping_services",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"sa"
],
"key": "PRIMARY",
"used_key_parts": [
"service_id"
],
"key_length": "3",
"ref": [
"webmarco.cscart_shippings.service_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.05",
"eval_cost": "0.01",
"prefix_cost": "5.75",
"data_read_per_join": "21"
},
"used_columns": [
"service_id",
"module",
"code"
]
}
},
{
"table": {
"table_name": "storefronts_shippings",
"access_type": "index",
"key": "idx_storefront_id",
"used_key_parts": [
"storefront_id"
],
"key_length": "4",
"rows_examined_per_scan": 13,
"rows_produced_per_join": 0,
"filtered": "20.00",
"using_index": true,
"using_join_buffer": "Block Nested Loop",
"cost_info": {
"read_cost": "3.08",
"eval_cost": "0.03",
"prefix_cost": "8.86",
"data_read_per_join": "2"
},
"used_columns": [
"storefront_id",
"shipping_id"
],
"attached_condition": "(<if>(found_match(storefronts_shippings), ((`webmarco`.`storefronts_shippings`.`storefront_id` = 1) or isnull(`webmarco`.`storefronts_shippings`.`storefront_id`)), true) and <if>(is_not_null_compl(storefronts_shippings), (`webmarco`.`storefronts_shippings`.`shipping_id` = `webmarco`.`cscart_shippings`.`shipping_id`), true))"
}
}
]
}
}
}
Result
shipping_id |
shipping |
delivery_time |
description |
rate_calculation |
service_params |
destination |
min_weight |
max_weight |
service_id |
free_shipping |
module |
service_code |
is_address_required |
9 |
Crono Standard ( €6.00 ) |
2-4 days |
|
M |
a:0:{} |
I |
0.000 |
10.000 |
0 |
Y |
|
|
Y |
10 |
Crono Express ( €8.00 ) |
1-2 days |
|
M |
a:0:{} |
I |
0.000 |
10.000 |
0 |
Y |
|
|
Y |
48 |
SDA Express courier |
|
<p>SDA Express courier</p> |
M |
a:0:{} |
I |
0.000 |
0.000 |
0 |
N |
|
|
Y |
49 |
DHL Express |
1-6 business days |
<p>DHL Express - Delivery Time: 1-6 business days </p> |
M |
a:0:{} |
I |
0.000 |
0.000 |
0 |
N |
|
|
Y |