Query time 0.00335
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "92.86"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "31.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": 31,
"rows_produced_per_join": 31,
"filtered": "100.00",
"index_condition": "((`goimagine`.`a`.`option_id` in (10588,10589,11327,11329,11332,11330,11636,11638,11639,11641)) and (`goimagine`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "31.71",
"eval_cost": "3.10",
"prefix_cost": "34.81",
"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": 31,
"filtered": "100.00",
"cost_info": {
"read_cost": "23.95",
"eval_cost": "3.10",
"prefix_cost": "61.86",
"data_read_per_join": "23K"
},
"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 |
|
| Jungle Green |
49795 |
11636 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Small - approximately 1 inch tall |
49817 |
11638 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Miniature Sculpture - No Findings |
49820 |
11639 |
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 |
|
| Spring Green |
49796 |
11636 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Medium - approximately 1.5 inches tall |
49818 |
11638 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Lobster Clasp Charm |
49821 |
11639 |
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 |
|
| Large - approximately 2 inches tall |
49819 |
11638 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Keyring |
49822 |
11639 |
3 |
3.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 |
|
| 18" Necklace Chain |
49823 |
11639 |
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 |
|
| French Hook Earrings |
49824 |
11639 |
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 |
|