Query time 0.00123
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "57.31"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "31.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": 31,
"rows_produced_per_join": 31,
"filtered": "100.00",
"index_condition": "((`cscartdb`.`a`.`option_id` in (473,474,475,476,477,478)) and (`cscartdb`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "12.36",
"eval_cost": "3.10",
"prefix_cost": "15.46",
"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": 31,
"filtered": "100.00",
"cost_info": {
"read_cost": "7.75",
"eval_cost": "3.10",
"prefix_cost": "26.31",
"data_read_per_join": "23K"
},
"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 |
0 like belly fat |
12682 |
473 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
red |
12689 |
475 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
red |
12703 |
476 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
glow |
12719 |
477 |
1 |
5.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
add glitter |
12721 |
478 |
1 |
5.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
5 like unflexed bicep |
12683 |
473 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
orange |
12690 |
475 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
orange |
12704 |
476 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
no glow |
12720 |
477 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
no glitter |
12722 |
478 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
10 like flexed bicep |
12684 |
473 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
suction cup |
12687 |
474 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
yellow |
12691 |
475 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
yellow |
12705 |
476 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
vaculock |
12688 |
474 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
green |
12692 |
475 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
green |
12706 |
476 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
blue |
12693 |
475 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
blue |
12707 |
476 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
None |
12723 |
474 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
purple |
12694 |
475 |
6 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
purple |
12708 |
476 |
6 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
white |
12695 |
475 |
7 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
white |
12709 |
476 |
7 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
black |
12696 |
475 |
8 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
black |
12710 |
476 |
8 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
brown |
12697 |
475 |
9 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
brown |
12711 |
476 |
9 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
beige |
12698 |
475 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
beige |
12712 |
476 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
gold |
12699 |
475 |
11 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
gold |
12713 |
476 |
11 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
silver |
12700 |
475 |
12 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
silver |
12714 |
476 |
12 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
copper |
12701 |
475 |
13 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
pink |
12715 |
476 |
13 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
brass |
12702 |
475 |
14 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
brass |
12716 |
476 |
14 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
copper |
12717 |
476 |
15 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
pink |
12718 |
475 |
15 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|