Query time 0.00262
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "95.35"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "33.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": 33,
"rows_produced_per_join": 33,
"filtered": "100.00",
"index_condition": "((`goimagine`.`a`.`option_id` in (9908,9910,9900,10427)) and (`goimagine`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "29.97",
"eval_cost": "3.30",
"prefix_cost": "33.27",
"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": 33,
"filtered": "100.00",
"cost_info": {
"read_cost": "25.79",
"eval_cost": "3.30",
"prefix_cost": "62.35",
"data_read_per_join": "25K"
},
"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 |
| NO ADD ON |
43517 |
9900 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| RED |
43540 |
9908 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| RED |
43558 |
9910 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| MASK ONLY |
43516 |
9900 |
2 |
5.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| PINK |
43541 |
9908 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| PINK |
43559 |
9910 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| CUFFS ONLY |
43515 |
9900 |
3 |
5.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| LILAC |
43542 |
9908 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| LILAC |
43560 |
9910 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| CUFFS & MASK |
43514 |
9900 |
4 |
10.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| ROYAL |
43543 |
9908 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| ROYAL |
43561 |
9910 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| BLACK |
43544 |
9908 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| BLACK |
43562 |
9910 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| WHITE |
43545 |
9908 |
6 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| WHITE |
43563 |
9910 |
6 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| GREEN |
43546 |
9908 |
7 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| GREEN |
43564 |
9910 |
7 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| YELLOW |
43547 |
9908 |
8 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| YELLOW |
43565 |
9910 |
8 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| APPLE |
43548 |
9908 |
9 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| APPLE |
43566 |
9910 |
9 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| SILVER |
43549 |
9908 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| SILVER |
43567 |
9910 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| ORANGE |
43550 |
9908 |
11 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| ORANGE |
43568 |
9910 |
11 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| PURPLE |
43551 |
9908 |
12 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| PURPLE |
43569 |
9910 |
12 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| HOT PINK |
43552 |
9908 |
13 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| HOT PINK |
43570 |
9910 |
13 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| TURQUOISE |
43553 |
9908 |
14 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| TURQUOISE |
43571 |
9910 |
14 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|