Query time 0.00084
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",
"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": 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_name |
variant_id |
option_id |
position |
modifier |
modifier_type |
weight_modifier |
weight_modifier_type |
point_modifier |
point_modifier_type |
status |
note_required |
10.5 |
13582 |
577 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
11 |
13583 |
577 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
11.5 |
13584 |
577 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
12 |
13585 |
577 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
12.5 |
13586 |
577 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
13 |
13587 |
577 |
6 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
13.5 |
13588 |
577 |
7 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
14 |
13589 |
577 |
8 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
14.5 |
13590 |
577 |
9 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
15 |
13591 |
577 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
16 |
13592 |
577 |
11 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
16.5 |
13593 |
577 |
12 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
17 |
13594 |
577 |
13 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
17.5 |
13595 |
577 |
14 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
18 |
13596 |
577 |
15 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
18.5 |
13597 |
577 |
16 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
19 |
13598 |
577 |
17 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
19.5 |
13599 |
577 |
18 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
20 |
13600 |
577 |
19 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
20.5 |
13601 |
577 |
20 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
21 |
13602 |
577 |
21 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
21.5 |
13603 |
577 |
22 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
22 |
13604 |
577 |
23 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|