Query time 0.00320
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "75.29"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "27.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": 27,
"rows_produced_per_join": 27,
"filtered": "100.00",
"index_condition": "((`goimagine`.`a`.`option_id` in (24427,23835,23836,22277,22278)) and (`goimagine`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "23.32",
"eval_cost": "2.70",
"prefix_cost": "26.02",
"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",
"etsy_variant_id"
]
}
},
{
"table": {
"table_name": "b",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"ref": [
"goimagine.a.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 27,
"filtered": "100.00",
"cost_info": {
"read_cost": "19.57",
"eval_cost": "2.70",
"prefix_cost": "48.29",
"data_read_per_join": "20K"
},
"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 |
etsy_variant_id |
| Black |
88008 |
22277 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Antique Copper |
88009 |
22277 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Satin Brass |
88010 |
22277 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 16 |
88011 |
22278 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Curly Maple/Walnut |
93912 |
23835 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| White |
96227 |
24427 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 17 |
88012 |
22278 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Curly Maple/Cherry |
93913 |
23835 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Black |
96228 |
24427 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 18 |
88013 |
22278 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Oak/Walnut |
93915 |
23835 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Copper |
96229 |
24427 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 19 |
88014 |
22278 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Oak/Cherry |
93916 |
23835 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 20 |
88015 |
22278 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 21 |
88016 |
22278 |
6 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 22 |
88017 |
22278 |
7 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 23 |
88018 |
22278 |
8 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 24 |
88019 |
22278 |
9 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 25 |
88020 |
22278 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 26 |
88021 |
22278 |
11 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 27 |
88022 |
22278 |
12 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 37 |
88043 |
22278 |
13 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 38 |
88044 |
22278 |
14 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 39 |
88045 |
22278 |
15 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 40 |
88046 |
22278 |
16 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|