Query time 0.00092
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "20.81"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "11.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": 11,
"rows_produced_per_join": 11,
"filtered": "100.00",
"index_condition": "((`cscartdb`.`a`.`option_id` in (388,389,390,391)) and (`cscartdb`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "4.86",
"eval_cost": "1.10",
"prefix_cost": "5.96",
"data_read_per_join": "528"
},
"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": 11,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.75",
"eval_cost": "1.10",
"prefix_cost": "9.81",
"data_read_per_join": "8K"
},
"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 |
Cup Holder |
11936 |
388 |
1 |
15.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Level |
11937 |
389 |
1 |
10.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Sedona Red |
11941 |
391 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
No Fractal Burn |
12008 |
390 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Aged Oak |
11942 |
391 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
No Level |
12010 |
389 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Fractal Burning - Large |
11940 |
390 |
3 |
150.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Ebony |
11943 |
391 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
No Cup Holder |
12009 |
388 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Honey |
11944 |
391 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Mahogany |
11945 |
391 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Classic Grey |
11946 |
391 |
6 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Dark Walnut |
11947 |
391 |
7 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Red Oak |
11948 |
391 |
8 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Golden Oak |
11949 |
391 |
9 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
No Stain - Sanding Only |
11950 |
391 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|