Query time 0.00101
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "51.16"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "28.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": 28,
"rows_produced_per_join": 28,
"filtered": "100.00",
"index_condition": "((`cscartdb`.`a`.`option_id` in (125,126,128)) and (`cscartdb`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "10.56",
"eval_cost": "2.80",
"prefix_cost": "13.36",
"data_read_per_join": "1K"
},
"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": 28,
"filtered": "100.00",
"cost_info": {
"read_cost": "7.00",
"eval_cost": "2.80",
"prefix_cost": "23.16",
"data_read_per_join": "21K"
},
"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 |
X-Long |
3515 |
128 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Long |
3516 |
128 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Regular |
3517 |
128 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Long (default) |
3518 |
128 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Small |
3519 |
128 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Red |
3483 |
125 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Black locking (default) |
16749 |
126 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
black |
3484 |
125 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Black non-locking |
16750 |
126 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
white |
3485 |
125 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
nickel locking |
16751 |
126 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
blue |
3486 |
125 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
nickel non-locking |
16752 |
126 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
purple |
3487 |
125 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
brass locking |
16753 |
126 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
pink |
3488 |
125 |
6 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
brass non-locking |
16754 |
126 |
6 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
yellow |
3490 |
125 |
7 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Pink Locking |
16755 |
126 |
7 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
green |
3492 |
125 |
8 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Pink Non-Locking |
16756 |
126 |
8 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Translucent Blue |
3493 |
125 |
9 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Red Locking |
16757 |
126 |
9 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
chocolate Brown |
3491 |
125 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Red Non-Locking |
16758 |
126 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Pearl |
3494 |
125 |
11 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Purple Locking |
16759 |
126 |
11 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
gold |
3489 |
125 |
12 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Purple Non-locking |
16760 |
126 |
12 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Silver |
3495 |
125 |
13 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Blue Locking |
16761 |
126 |
13 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Clear |
3496 |
125 |
14 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Blue Non-Locking |
16762 |
126 |
14 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Green Locking |
16763 |
126 |
15 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Green Non-Locking |
16764 |
126 |
16 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Rainbow locking |
16765 |
126 |
17 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|