Query time 0.00081
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "38.31"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "21.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": 21,
"rows_produced_per_join": 21,
"filtered": "100.00",
"index_condition": "((`cscartdb`.`a`.`option_id` in (894,1053)) and (`cscartdb`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "7.86",
"eval_cost": "2.10",
"prefix_cost": "9.96",
"data_read_per_join": "1008"
},
"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": 21,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.25",
"eval_cost": "2.10",
"prefix_cost": "17.31",
"data_read_per_join": "16K"
},
"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 |
S/M 1" - 1 3/16" Ø Inches |
18763 |
1053 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Black |
18783 |
894 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
M/L 1 9/16" - 1 3/4" Ø Inches |
18764 |
1053 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Red |
18784 |
894 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
White |
18785 |
894 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Yellow |
18786 |
894 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Purple |
18787 |
894 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Baby Pink |
18775 |
894 |
6 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Hot Pink |
18776 |
894 |
7 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Blue |
18777 |
894 |
8 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Green |
18778 |
894 |
9 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Brown |
18779 |
894 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Caramel Brown |
18780 |
894 |
11 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Gray |
18781 |
894 |
12 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Orange |
18782 |
894 |
13 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|