Query time 0.00086
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 (289,362,361)) 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 |
No name |
10529 |
289 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Bahama Breeze |
11467 |
361 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Bahama Breeze |
11476 |
362 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Add a name |
10530 |
289 |
2 |
6.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Black Amber & Lavender |
11468 |
361 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Black Amber & Lavender |
11477 |
362 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Cashmere Caress |
11469 |
361 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Cashmere Caress |
11479 |
362 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Coquito |
11470 |
361 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Coquito |
11478 |
362 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Lavender Vanilla |
11475 |
361 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Lavender Vanilla |
11480 |
362 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Mahogany Teakwood |
11471 |
361 |
6 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Mahogany Teakwood |
11481 |
362 |
6 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Raspberry & Vanilla Cream |
11473 |
361 |
7 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Raspberry & Vanilla Cream |
11482 |
362 |
7 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Strawberry Cream Cake |
11474 |
361 |
8 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Strawberry Cream Cake |
11484 |
362 |
8 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Vanilla Buttercream |
11472 |
361 |
9 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Vanilla Buttercream |
11483 |
362 |
9 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|