Query time 0.00087
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "27.51"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "15.00"
},
"nested_loop": [
{
"table": {
"table_name": "a",
"access_type": "range",
"possible_keys": [
"status",
"option_id",
"option_id_2"
],
"key": "option_id",
"used_key_parts": [
"option_id",
"status"
],
"key_length": "6",
"rows_examined_per_scan": 15,
"rows_produced_per_join": 15,
"filtered": "100.00",
"index_condition": "((`cscartdb`.`a`.`option_id` in (245,210)) and (`cscartdb`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "5.76",
"eval_cost": "1.50",
"prefix_cost": "7.26",
"data_read_per_join": "720"
},
"used_columns": [
"variant_id",
"option_id",
"position",
"modifier",
"modifier_type",
"weight_modifier",
"weight_modifier_type",
"point_modifier",
"point_modifier_type",
"status",
"note_required"
]
}
},
{
"table": {
"table_name": "b",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"ref": [
"cscartdb.a.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 15,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.75",
"eval_cost": "1.50",
"prefix_cost": "12.51",
"data_read_per_join": "11K"
},
"used_columns": [
"variant_id",
"lang_code",
"variant_name"
]
}
}
]
}
}
}
Result
variant_name |
variant_id |
option_id |
position |
modifier |
modifier_type |
weight_modifier |
weight_modifier_type |
point_modifier |
point_modifier_type |
status |
note_required |
Oak (Natural) |
8021 |
210 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
1/4" |
9221 |
245 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Oak (Kona) |
8022 |
210 |
2 |
10.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
3/8" |
9222 |
245 |
2 |
10.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Cedar |
8023 |
210 |
3 |
10.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
1/2" |
9223 |
245 |
3 |
25.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Mahogany |
8024 |
210 |
4 |
15.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Walnut |
8025 |
210 |
5 |
15.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Jatoba |
8026 |
210 |
6 |
15.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Padauk |
8027 |
210 |
7 |
15.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Purpleheart |
8028 |
210 |
8 |
25.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Canarywood |
8029 |
210 |
9 |
35.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Chechen |
8030 |
210 |
10 |
35.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Osage Orange |
8031 |
210 |
11 |
35.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Zebrawood |
8032 |
210 |
12 |
40.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Bubinga |
8033 |
210 |
13 |
40.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Wenge |
8034 |
210 |
14 |
40.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Katalox |
8035 |
210 |
15 |
45.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Bocote |
8036 |
210 |
16 |
45.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|