Query time 0.00153
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "7.57"
},
"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": 3,
"rows_produced_per_join": 0,
"filtered": "1.67",
"cost_info": {
"read_cost": "4.21",
"eval_cost": "0.01",
"prefix_cost": "4.22",
"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 (49,38,24)) 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": "4.28",
"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": "4.34",
"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": "7.45",
"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 |
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 |
38 |
UPS |
|
<p><em>ups</em></p> |
R |
a:14:{s:10:"access_key";s:0:"";s:8:"username";s:16:"2021021214131415";s:8:"password";s:15:"C;&w<.72iX.csV6";s:16:"negotiated_rates";s:1:"N";s:14:"shipper_number";s:0:"";s:9:"test_mode";s:1:"Y";s:11:"pickup_type";s:2:"01";s:12:"package_type";s:2:"01";s:21:"delivery_confirmation";s:1:"N";s:10:"dcist_type";s:1:"1";s:17:"max_weight_of_box";s:1:"0";s:5:"width";s:2:"10";s:6:"height";s:2:"10";s:6:"length";s:2:"10";} |
I |
0.000 |
0.000 |
451 |
N |
upsdeprecated |
96 |
Y |
24 |
Free Shipping For Italy |
2-4 days |
|
M |
a:0:{} |
I |
0.000 |
0.000 |
0 |
Y |
|
|
Y |