Query time 0.01505
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "66.58"
},
"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 (10588,10589,11327,12389,11329,11332,11330)) and (`goimagine`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "22.14",
"eval_cost": "2.30",
"prefix_cost": "24.44",
"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.85",
"eval_cost": "2.30",
"prefix_cost": "43.58",
"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 |
| White |
46315 |
10588 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Stainless Steel Studs |
46319 |
10589 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| None |
48250 |
11327 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Black |
48253 |
11329 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Miniature Sculpture - No Findings |
48255 |
11330 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| White |
53038 |
12389 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Red |
46316 |
10588 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Clip-on |
46320 |
10589 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Fawn |
48254 |
11329 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Lobster Clasp Charm |
48256 |
11330 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Gift Message (free! add message at checkout) |
48260 |
11327 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Pink |
53039 |
12389 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Green |
46317 |
10588 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Birthday |
48249 |
11327 |
3 |
4.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Keyring |
48257 |
11330 |
3 |
3.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Red |
53040 |
12389 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Pink |
46318 |
10588 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Christmas |
48248 |
11327 |
4 |
4.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 18" Necklace Chain |
48258 |
11330 |
4 |
5.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Wedding |
48251 |
11327 |
5 |
4.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| French Hook Earrings |
48259 |
11330 |
5 |
10.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Just Because |
48252 |
11327 |
6 |
4.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|