Query time 0.00189
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "175.20"
},
"ordering_operation": {
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "a",
"access_type": "ref",
"possible_keys": [
"status",
"option_id",
"option_id_2"
],
"key": "option_id",
"used_key_parts": [
"option_id",
"status"
],
"key_length": "6",
"ref": [
"const",
"const"
],
"rows_examined_per_scan": 73,
"rows_produced_per_join": 73,
"filtered": "100.00",
"index_condition": "((`portal`.`a`.`option_id` <=> 22) and (`portal`.`a`.`status` <=> 'A'))",
"cost_info": {
"read_cost": "73.00",
"eval_cost": "14.60",
"prefix_cost": "87.60",
"data_read_per_join": "3K"
},
"used_columns": [
"variant_id",
"option_id",
"position",
"modifier",
"modifier_type",
"weight_modifier",
"weight_modifier_type",
"status"
]
}
},
{
"table": {
"table_name": "b",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"ref": [
"portal.a.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 73,
"filtered": "100.00",
"cost_info": {
"read_cost": "73.00",
"eval_cost": "14.60",
"prefix_cost": "175.20",
"data_read_per_join": "55K"
},
"used_columns": [
"variant_id",
"lang_code",
"variant_name"
]
}
}
]
}
}
}
Result
variant_id |
option_id |
position |
modifier |
modifier_type |
weight_modifier |
weight_modifier_type |
variant_name |
82 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Black |
83 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Blue |
84 |
22 |
0 |
0.000 |
A |
0.000 |
A |
White |
85 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Yellow |
86 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Royal Blue |
87 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Red |
88 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Green |
89 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Navy Blue |
130 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Pink |
131 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Orange |
132 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Dark Green |
133 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Off White |
140 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Dark Blue |
141 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Sky Blue |
170 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Army Green |
171 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Beige |
174 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Grey |
175 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Gold |
176 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Rose Gold |
177 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Brown |
178 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Silver |
179 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Maroon |
180 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Black & White |
181 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Multicolor |
182 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Gunmetal Black |
183 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Matcha Green |
184 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Rose |
185 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Indigo Blue |
186 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Bronze |
187 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Purple |
188 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Light Pink |
189 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Dark Red |
190 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Turquoise |
341 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Plum |
516 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Stone |
517 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Pink Sand |
518 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Nectarine |
519 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Midnight Blue |
520 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Lavender Gray |
521 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Blue Horizon |
522 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Coffee |
548 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Juicy Orange |
549 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Opal Grey |
550 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Yellow Leopard |
551 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Fucsia Leopard |
566 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Black & Silver |
613 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Space Gray |
614 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Rose Gold |
623 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Light Purple |
624 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Dark Purple |
632 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Coral |
633 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Sunset |
634 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Teal |
635 |
22 |
0 |
0.000 |
A |
0.000 |
A |
White Gold |
636 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Gradient Blue |
692 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Tiffany |
700 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Green & Silver |
701 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Red & Silver |
702 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Purple & Silver |
703 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Blue & Silver |
780 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Lavender |
781 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Mint Green |
2703 |
22 |
0 |
0.000 |
A |
0.000 |
A |
UK Flag |
2704 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Black Spider Web |
5652 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Champagne Gold |
6790 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Pink Gold |
6791 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Cyan Blue |
6792 |
22 |
0 |
0.000 |
A |
0.000 |
A |
Blue Purple |