Query time 0.00090
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "27.76"
},
"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 (525,526,530)) and (`cscartdb`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "6.01",
"eval_cost": "1.50",
"prefix_cost": "7.51",
"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.76",
"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 |
XS |
13208 |
525 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
White Picot |
13234 |
526 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Pink |
13243 |
530 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Small |
13209 |
525 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Black Picot |
13235 |
526 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
White |
13244 |
530 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Medium |
13210 |
525 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
White Loop |
13236 |
526 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Black |
13245 |
530 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Large |
13211 |
525 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Black Loop |
13237 |
526 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Red |
13246 |
530 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
XL |
13212 |
525 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Blue Loop |
13238 |
526 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Lilac |
13247 |
530 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
XXL |
13213 |
525 |
6 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Pink Frilly |
13239 |
526 |
6 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
No Bow |
13248 |
530 |
6 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
XXXL |
13214 |
525 |
7 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|