Query time 0.00121
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "6.17"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "0.13"
},
"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": 2,
"rows_produced_per_join": 0,
"filtered": "2.50",
"cost_info": {
"read_cost": "2.80",
"eval_cost": "0.01",
"prefix_cost": "2.81",
"data_read_per_join": "118"
},
"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 (181,180)) 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": "2.87",
"data_read_per_join": "49"
},
"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": "2.93",
"data_read_per_join": "20"
},
"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": "6.04",
"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 |
180 |
GLS - Impronte Calzature Scordia |
|
|
M |
a:0:{} |
I |
0.000 |
0.000 |
0 |
N |
|
|
Y |
181 |
Cash On Delivery |
|
|
M |
a:0:{} |
I |
0.000 |
0.000 |
0 |
N |
|
|
Y |