Query time 0.00157
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "92.63"
},
"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": "((`goimagine`.`a`.`option_id` in (12033,15352,15353,13067,13066,19748,19750)) and (`goimagine`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "31.53",
"eval_cost": "3.00",
"prefix_cost": "34.53",
"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": 30,
"filtered": "100.00",
"cost_info": {
"read_cost": "25.10",
"eval_cost": "3.00",
"prefix_cost": "62.63",
"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 |
etsy_variant_id |
| Strawberry |
51704 |
12033 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Chocolate |
51705 |
12033 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Vanilla |
51706 |
12033 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Random |
55353 |
13066 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| A |
55354 |
13066 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| B |
55355 |
13066 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| C |
55356 |
13066 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| D |
55357 |
13066 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| E |
55358 |
13066 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| F |
55359 |
13066 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| G |
55360 |
13066 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| H |
55361 |
13066 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| I |
55362 |
13066 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| J |
55363 |
13066 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| K |
55364 |
13066 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| L |
55365 |
13066 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| M |
55366 |
13066 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| N |
55367 |
13066 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| O |
55368 |
13066 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| P |
55369 |
13066 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Axes |
61386 |
15352 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Thor's hammer |
61387 |
15352 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Leaf |
61388 |
15352 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Rose |
61389 |
15352 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Rose (with personalization) |
61392 |
15352 |
0 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
|
77557 |
19748 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
|
77556 |
19748 |
1 |
5.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|