Query time 0.00826
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "77.62"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "26.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": 26,
"rows_produced_per_join": 26,
"filtered": "100.00",
"index_condition": "((`goimagine`.`a`.`option_id` in (3242,5543,12123,3230,9805)) and (`goimagine`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "25.51",
"eval_cost": "2.60",
"prefix_cost": "28.11",
"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": 26,
"filtered": "100.00",
"cost_info": {
"read_cost": "20.90",
"eval_cost": "2.60",
"prefix_cost": "51.62",
"data_read_per_join": "19K"
},
"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 |
| Off-White |
13804 |
3230 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| S |
13841 |
3242 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| BLACK |
24601 |
5543 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Pillow cover only |
43176 |
9805 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Home sweet home |
52113 |
12123 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| M |
13842 |
3242 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| GREY |
24602 |
5543 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| United we stand |
52114 |
12123 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Pillow |
94654 |
9805 |
2 |
13.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Cream |
109686 |
3230 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| L |
13843 |
3242 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| INDIGO |
24603 |
5543 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| July 4th |
52115 |
12123 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| XL |
13844 |
3242 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| ORANGE |
24604 |
5543 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Americana Flag |
52116 |
12123 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 2XL |
13845 |
3242 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| LIME |
24605 |
5543 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 3XL |
13863 |
3242 |
6 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| PINK |
24606 |
5543 |
6 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 3 piece set |
52117 |
12123 |
6 |
25.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| RED |
24607 |
5543 |
7 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| ROYAL BLUE |
24608 |
5543 |
8 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| TAHITI BLUE |
24609 |
5543 |
9 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| WHITE |
24611 |
5543 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| YELLOW |
24610 |
5543 |
11 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|