Query time 0.00097
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "49.36"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "27.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": 27,
"rows_produced_per_join": 27,
"filtered": "100.00",
"index_condition": "((`cscartdb`.`a`.`option_id` in (125,126,127)) and (`cscartdb`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "10.21",
"eval_cost": "2.70",
"prefix_cost": "12.91",
"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": 27,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.75",
"eval_cost": "2.70",
"prefix_cost": "22.36",
"data_read_per_join": "20K"
},
"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 |
Red |
3483 |
125 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Extra Small (12-16" size) |
3514 |
127 |
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 |
|
Small (14-18" size) (Default for 1.0" to 1.25" Balls) |
3513 |
127 |
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 |
|
Regular (16-20" size) (Default for 1.375" to 2.5" balls)) |
3512 |
127 |
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 |
|
Long (18-22" size) (Default for 2.375" to 3.0" balls) |
3511 |
127 |
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 |
|
Extra Long (20-24" size) |
3510 |
127 |
5 |
1.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 |
|