Query time 0.00079
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "42.66"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "23.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": 23,
"rows_produced_per_join": 23,
"filtered": "100.00",
"index_condition": "((`cscartdb`.`a`.`option_id` in (1015,933,938,939,940)) and (`cscartdb`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "9.31",
"eval_cost": "2.30",
"prefix_cost": "11.61",
"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": 23,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.75",
"eval_cost": "2.30",
"prefix_cost": "19.66",
"data_read_per_join": "17K"
},
"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 |
Black Mirror |
17750 |
933 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Standard |
17786 |
938 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
White |
17788 |
939 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Blue |
17791 |
940 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Trunk |
18520 |
1015 |
1 |
499.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Blue Mirror |
17751 |
933 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Mini |
17787 |
938 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Black |
17789 |
939 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Pink |
17792 |
940 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Add Handle With Wheels |
18521 |
1015 |
2 |
599.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Pink Mirror |
17752 |
933 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Sparkly Purple |
17790 |
939 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
None |
17793 |
940 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Pink Solid |
17753 |
933 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
Purple |
17794 |
940 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
White Solid |
17754 |
933 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|