Query time 0.00307
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "67.34"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "23.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": 23,
"rows_produced_per_join": 23,
"filtered": "100.00",
"index_condition": "((`goimagine`.`a`.`option_id` in (3123,19446,20746,35078,3117,3118,3119)) and (`goimagine`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "22.78",
"eval_cost": "2.30",
"prefix_cost": "25.08",
"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": 23,
"filtered": "100.00",
"cost_info": {
"read_cost": "16.96",
"eval_cost": "2.30",
"prefix_cost": "44.34",
"data_read_per_join": "17K"
},
"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 |
| Short |
13452 |
3118 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Long |
13453 |
3118 |
0 |
1.500 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| A |
13456 |
3119 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| B |
13457 |
3119 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| C |
13458 |
3119 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| A. Helms |
13468 |
3123 |
0 |
1.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| B. Helms w/stars |
13469 |
3123 |
0 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| C. Simple Celtic |
13470 |
3123 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| D. Bumble Bee |
13471 |
3123 |
0 |
4.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| E. Diamond |
13472 |
3123 |
0 |
3.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| none selected |
76489 |
19446 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| plain box included |
76490 |
19446 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| fully decorated |
76491 |
19446 |
0 |
3.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 1. Double rosette |
81401 |
20746 |
0 |
6.200 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 2. single rose |
81402 |
20746 |
0 |
5.300 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 3. small bloom |
81403 |
20746 |
0 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 4. rose bud |
81404 |
20746 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Primarys |
138777 |
35078 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Pastels |
138778 |
35078 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Red |
13447 |
3117 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Green |
13450 |
3117 |
20 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Blue |
13449 |
3117 |
30 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Gold |
13448 |
3117 |
40 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|