Query time 0.01193
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "98.77"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "32.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": 32,
"rows_produced_per_join": 32,
"filtered": "100.00",
"index_condition": "((`goimagine`.`a`.`option_id` in (25988,25989,25990,26545,26546,25999,25992,25986,25985,25996,26001,26672,26447,31904)) and (`goimagine`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "35.93",
"eval_cost": "3.20",
"prefix_cost": "39.13",
"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": 32,
"filtered": "100.00",
"cost_info": {
"read_cost": "24.44",
"eval_cost": "3.20",
"prefix_cost": "66.77",
"data_read_per_join": "24K"
},
"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 |
| White Distressed |
103447 |
25985 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 1 Double Hook |
103448 |
25986 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 2 Double Hooks |
103449 |
25986 |
0 |
8.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 3 Double Hooks |
103450 |
25986 |
0 |
12.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Stain |
103451 |
25985 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Dark Grey Distressed |
103452 |
25988 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| White Distressed |
103453 |
25988 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Stain |
103454 |
25988 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 1 Double Hook |
103455 |
25989 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 2 Double Hooks |
103456 |
25989 |
0 |
8.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 3 Double Hooks |
103457 |
25989 |
0 |
12.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Dark Grey Distressed |
103465 |
25992 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| White Distressed |
103466 |
25992 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Dark Grey Distressed |
103480 |
25999 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| White Distressed |
103481 |
25999 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Stain |
103482 |
25999 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Distressed White/Silver Hook |
103472 |
25996 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Cheers to Dad |
105909 |
26447 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Personalized Monogram |
106249 |
26545 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| White with Black Lettering |
126188 |
31904 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Distressed White/Black Hook |
103474 |
25996 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Dad Cave |
105910 |
26447 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Personalized Script |
106248 |
26545 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Dark Grey with White Lettering |
126189 |
31904 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Distressed Grey/Silver Hook |
103473 |
25996 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Dad Juice |
105975 |
26447 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Stain/Silver Hook |
103475 |
25996 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Dad's #1 Tool |
107089 |
26447 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|