Query time 0.00094
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "42.41"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "23.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": 23,
"rows_produced_per_join": 23,
"filtered": "100.00",
"index_condition": "((`cscartdb`.`a`.`option_id` in (170,171,174,175)) and (`cscartdb`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "9.06",
"eval_cost": "2.30",
"prefix_cost": "11.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": 23,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.75",
"eval_cost": "2.30",
"prefix_cost": "19.41",
"data_read_per_join": "17K"
},
"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 |
No Side Ties |
6840 |
175 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Side Ties |
6841 |
175 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Black |
6901 |
170 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
XS = 21-23 inches |
6919 |
171 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Naughty = 2 inches wide |
6941 |
174 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
White |
6902 |
170 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
S = 24-26 inches |
6920 |
171 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Micro = 2.5 inches wide |
6942 |
174 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Aqua |
6903 |
170 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
M = 27-29 inches |
6921 |
171 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
XS = 3.25 inches wide |
6943 |
174 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Yellow |
6904 |
170 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
L = 30-32 inches |
6922 |
171 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
S = 4 inches wide |
6944 |
174 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Dark Blue |
6905 |
170 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
XL = 33-35 inches |
6923 |
171 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
M = 4.75 inches wide |
6945 |
174 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Pink |
6906 |
170 |
6 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
XXL = 36-38 inches |
6924 |
171 |
6 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
L = 5.5 inches wide |
6946 |
174 |
6 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Nude |
6907 |
170 |
7 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
XL = 6.25 inches wide |
6947 |
174 |
7 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Green |
6908 |
170 |
8 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
XXL = 7.25 inches wide |
6948 |
174 |
8 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Red |
6909 |
170 |
9 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
XXXL = 8.25 inches wide |
6949 |
174 |
9 |
3.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Teal |
6910 |
170 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
XXXXL = 9 inches wide |
6950 |
174 |
10 |
6.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Purple |
6911 |
170 |
11 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Orange |
6912 |
170 |
12 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|