Query time 0.00515
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "60.04"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "19.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": 19,
"rows_produced_per_join": 19,
"filtered": "100.00",
"index_condition": "((`goimagine`.`a`.`option_id` in (9419,9817,9816,18727,9802,9796,9803,9804)) and (`goimagine`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "22.06",
"eval_cost": "1.90",
"prefix_cost": "23.96",
"data_read_per_join": "912"
},
"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": 19,
"filtered": "100.00",
"cost_info": {
"read_cost": "15.18",
"eval_cost": "1.90",
"prefix_cost": "41.04",
"data_read_per_join": "14K"
},
"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 |
| blue with eyelashes |
41602 |
9419 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Silver |
43142 |
9796 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| No stand |
43174 |
9804 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| No personalization |
43209 |
9817 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| None |
73700 |
18727 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| blue without eyelashes |
41603 |
9419 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Gold |
43143 |
9796 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Stand |
43175 |
9804 |
2 |
5.000 |
A |
1.000 |
A |
0.000 |
A |
A |
|
| Personalize foot/feet |
43210 |
9817 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Embroidery on the front |
73701 |
18727 |
2 |
5.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| brown with eyelashes |
41604 |
9419 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Bling |
43144 |
9796 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| brown without eyelashes |
41605 |
9419 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Other |
43173 |
9796 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| green with eyelashes |
41606 |
9419 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| green without eyelashes |
41607 |
9419 |
6 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|