Query time 0.00102
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "54.51"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "30.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": 30,
"rows_produced_per_join": 30,
"filtered": "100.00",
"index_condition": "((`cscartdb`.`a`.`option_id` in (578,577)) and (`cscartdb`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "11.01",
"eval_cost": "3.00",
"prefix_cost": "14.01",
"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": 30,
"filtered": "100.00",
"cost_info": {
"read_cost": "7.50",
"eval_cost": "3.00",
"prefix_cost": "24.51",
"data_read_per_join": "22K"
},
"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 |
|
5 |
13622 |
578 |
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 |
|
5.5 |
13623 |
578 |
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 |
|
6 |
13624 |
578 |
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 |
|
6.5 |
13625 |
578 |
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 |
|
7 |
13626 |
578 |
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 |
|
7.5 |
13627 |
578 |
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 |
|
8 |
13628 |
578 |
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 |
|
8.5 |
13629 |
578 |
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 |
|
9 |
13630 |
578 |
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 |
|
9.5 |
13631 |
578 |
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 |
|
10 |
13632 |
578 |
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 |
|
10.5 |
13633 |
578 |
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 |
|
11 |
13634 |
578 |
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 |
|
11.5 |
13635 |
578 |
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 |
|
12 |
13636 |
578 |
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 |
|
12.5 |
13637 |
578 |
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 |
|
13 |
13638 |
578 |
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 |
|