Query time 0.00086
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "37.01"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "20.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": 20,
"rows_produced_per_join": 20,
"filtered": "100.00",
"index_condition": "((`cscartdb`.`a`.`option_id` in (1062,1064,1065,1063)) and (`cscartdb`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "8.01",
"eval_cost": "2.00",
"prefix_cost": "10.01",
"data_read_per_join": "960"
},
"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": 20,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.00",
"eval_cost": "2.00",
"prefix_cost": "17.01",
"data_read_per_join": "15K"
},
"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 Locking Posts |
18867 |
1063 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
S 5.5"-7.0" |
18881 |
1064 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
S 7.0"-8.5" |
18885 |
1065 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
S 12.0"-13.5" |
19482 |
1062 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Add Locking Posts |
18868 |
1063 |
2 |
5.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
M 7.0"-8.5" |
18882 |
1064 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
M 8.5"-10.0" |
18886 |
1065 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
M 13.5"-15.0" |
19483 |
1062 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
L 8.5"-10.0" |
18883 |
1064 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
L 10.0-11.5" |
18887 |
1065 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
L 15.0"-16.5" |
19484 |
1062 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
XL 10.0-11.5" |
18884 |
1064 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
XL 11.5-13.0 |
18888 |
1065 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
XL 16.5"-18.0" |
19485 |
1062 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|