Query time 0.00062
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "10.11"
},
"nested_loop": [
{
"table": {
"table_name": "destination_links",
"access_type": "range",
"possible_keys": [
"idx_store_location_destination"
],
"key": "idx_store_location_destination",
"used_key_parts": [
"store_location_id"
],
"key_length": "3",
"rows_examined_per_scan": 12,
"rows_produced_per_join": 12,
"filtered": "100.00",
"index_condition": "(`dev_yourmart_co_bw`.`destination_links`.`store_location_id` in (4,5))",
"cost_info": {
"read_cost": "4.71",
"eval_cost": "1.20",
"prefix_cost": "5.91",
"data_read_per_join": "192"
},
"used_columns": [
"link_id",
"store_location_id",
"destination_id",
"warn_about_delay",
"position"
]
}
},
{
"table": {
"table_name": "shipping_delays",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"store_location_id",
"destination_id",
"lang_code"
],
"key_length": "12",
"ref": [
"dev_yourmart_co_bw.destination_links.store_location_id",
"dev_yourmart_co_bw.destination_links.destination_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 12,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.00",
"eval_cost": "1.20",
"prefix_cost": "10.11",
"data_read_per_join": "9K"
},
"used_columns": [
"store_location_id",
"destination_id",
"shipping_delay",
"lang_code"
]
}
}
]
}
}
Result
link_id |
store_location_id |
destination_id |
warn_about_delay |
position |
shipping_delay |
lang_code |
47 |
4 |
11 |
0 |
2 |
1 - 5 Business Days |
en |
46 |
4 |
15 |
0 |
2 |
1 - 5 Business Days |
en |
45 |
4 |
20 |
0 |
1 |
1 - 5 Business Days |
en |
85 |
5 |
1 |
0 |
3 |
1 - 5 Business Days |
en |
54 |
5 |
12 |
0 |
2 |
1 - 5 Business Days |
en |
49 |
5 |
13 |
1 |
2 |
1 - 8 Business Days |
en |
53 |
5 |
14 |
1 |
2 |
1 - 8 Business Days |
en |
50 |
5 |
16 |
1 |
2 |
2 - 10 Business Days |
en |
52 |
5 |
17 |
0 |
2 |
5 - 7 Business Days |
en |
51 |
5 |
18 |
0 |
1 |
5 - 7 Business Days |
en |
55 |
5 |
19 |
0 |
2 |
1 - 5 Business Days |
en |