Query time 0.00524
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "62.50"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "22.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": 22,
"rows_produced_per_join": 22,
"filtered": "100.00",
"index_condition": "((`goimagine`.`a`.`option_id` in (23473,23627,30319)) and (`goimagine`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "19.27",
"eval_cost": "2.20",
"prefix_cost": "21.47",
"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": 22,
"filtered": "100.00",
"cost_info": {
"read_cost": "16.83",
"eval_cost": "2.20",
"prefix_cost": "40.50",
"data_read_per_join": "16K"
},
"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 |
| Tan |
92916 |
23473 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| X-Small |
93275 |
23627 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Teal/Blue |
119313 |
30319 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Gray |
92915 |
23473 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Small |
93276 |
23627 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Pink/Dark Pink |
119314 |
30319 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Coral |
92918 |
23473 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Medium |
93277 |
23627 |
3 |
3.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Off White/Pale Pink |
119315 |
30319 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| White |
92909 |
23473 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Large |
93278 |
23627 |
4 |
3.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Yellow/Dark Yellow |
119316 |
30319 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Purple |
92914 |
23473 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| X-Large |
93279 |
23627 |
5 |
13.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Purple/Orange |
119317 |
30319 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Yellow |
92917 |
23473 |
6 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Fushia |
92911 |
23473 |
7 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Off white |
92910 |
23473 |
8 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Dark Blue |
92920 |
23473 |
9 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Light Blue |
92913 |
23473 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Light Pink |
92912 |
23473 |
11 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Mint Green |
92919 |
23473 |
12 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|