Query time 0.00092
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "11.90"
},
"ordering_operation": {
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "a",
"access_type": "ref",
"possible_keys": [
"status",
"option_id",
"option_id_2"
],
"key": "option_id",
"used_key_parts": [
"option_id",
"status"
],
"key_length": "6",
"ref": [
"const",
"const"
],
"rows_examined_per_scan": 17,
"rows_produced_per_join": 17,
"filtered": "100.00",
"cost_info": {
"read_cost": "4.25",
"eval_cost": "1.70",
"prefix_cost": "5.95",
"data_read_per_join": "816"
},
"used_columns": [
"variant_id",
"option_id",
"position",
"modifier",
"modifier_type",
"weight_modifier",
"weight_modifier_type",
"status"
]
}
},
{
"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": 17,
"filtered": "100.00",
"cost_info": {
"read_cost": "4.25",
"eval_cost": "1.70",
"prefix_cost": "11.90",
"data_read_per_join": "13K"
},
"used_columns": [
"variant_id",
"lang_code",
"variant_name"
]
}
}
]
}
}
}
Result
variant_id |
position |
modifier |
modifier_type |
weight_modifier |
weight_modifier_type |
variant_name |
13582 |
1 |
0.000 |
A |
0.000 |
A |
10.5 |
13583 |
2 |
0.000 |
A |
0.000 |
A |
11 |
13584 |
3 |
0.000 |
A |
0.000 |
A |
11.5 |
13585 |
4 |
0.000 |
A |
0.000 |
A |
12 |
13586 |
5 |
0.000 |
A |
0.000 |
A |
12.5 |
13587 |
6 |
0.000 |
A |
0.000 |
A |
13 |
13588 |
7 |
0.000 |
A |
0.000 |
A |
13.5 |
13589 |
8 |
0.000 |
A |
0.000 |
A |
14 |
13590 |
9 |
0.000 |
A |
0.000 |
A |
14.5 |
13591 |
10 |
0.000 |
A |
0.000 |
A |
15 |
13592 |
11 |
0.000 |
A |
0.000 |
A |
16 |
13593 |
12 |
0.000 |
A |
0.000 |
A |
16.5 |
13594 |
13 |
0.000 |
A |
0.000 |
A |
17 |
13595 |
14 |
0.000 |
A |
0.000 |
A |
17.5 |
13596 |
15 |
0.000 |
A |
0.000 |
A |
18 |
13597 |
16 |
0.000 |
A |
0.000 |
A |
18.5 |
13598 |
17 |
0.000 |
A |
0.000 |
A |
19 |
13599 |
18 |
0.000 |
A |
0.000 |
A |
19.5 |
13600 |
19 |
0.000 |
A |
0.000 |
A |
20 |
13601 |
20 |
0.000 |
A |
0.000 |
A |
20.5 |
13602 |
21 |
0.000 |
A |
0.000 |
A |
21 |
13603 |
22 |
0.000 |
A |
0.000 |
A |
21.5 |
13604 |
23 |
0.000 |
A |
0.000 |
A |
22 |