Query time 0.00151
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "220.38"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "71.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": 71,
"rows_produced_per_join": 71,
"filtered": "100.00",
"index_condition": "((`goimagine`.`a`.`option_id` in (23619,20858,20856,19752,20691,20690,20689,20688,15352,15353,13067,13066,12933,13735,12580,12583,12540,12033)) and (`goimagine`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "76.40",
"eval_cost": "7.10",
"prefix_cost": "83.50",
"data_read_per_join": "3K"
},
"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": 71,
"filtered": "100.00",
"cost_info": {
"read_cost": "58.78",
"eval_cost": "7.10",
"prefix_cost": "149.38",
"data_read_per_join": "54K"
},
"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 |
|
| Zombie bear |
53473 |
12540 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Norse Triceratops |
53474 |
12540 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Apple |
53581 |
12580 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Mauve |
53582 |
12580 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Eggplant |
53590 |
12580 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Mocha |
53591 |
12580 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Black |
53592 |
12580 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Navy |
53593 |
12580 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 3-6m |
53595 |
12583 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 6-12m |
53596 |
12583 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 12-18m |
53597 |
12583 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 18-36m |
53598 |
12583 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 3-5 years |
53599 |
12583 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 5-10 years |
53600 |
12583 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Teen/Adult |
53601 |
12583 |
0 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| A |
54915 |
12933 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| B |
54916 |
12933 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| C |
54917 |
12933 |
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 |
|
| Pierogi Time |
58460 |
13735 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Polish and Proud |
58461 |
13735 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Flag Heart |
58462 |
13735 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Na Zdrowie |
58463 |
13735 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Floral Heart |
58464 |
13735 |
0 |
3.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 |
|
| Shop name with underscores |
81268 |
20688 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Shop name without underscores |
81269 |
20688 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Goimagine |
81270 |
20688 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Shopsmall |
81271 |
20688 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Etsy |
81273 |
20688 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Set of 4 (please specify in notes) |
81274 |
20688 |
0 |
12.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Gold (A) |
81890 |
20856 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Copper (B) |
81895 |
20856 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Silver (C) |
81896 |
20856 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Silver (A) |
81897 |
20858 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Gold (B) |
81898 |
20858 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Copper (C) |
81899 |
20858 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Bronze (D) |
81900 |
20858 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Green |
93265 |
23619 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Dark Red |
93266 |
23619 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Yellow |
93267 |
23619 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Purple |
93918 |
23619 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|