Query time 0.00237
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "61.11"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "21.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": 21,
"rows_produced_per_join": 21,
"filtered": "100.00",
"index_condition": "((`goimagine`.`a`.`option_id` in (27756,27755,27753,27754)) and (`goimagine`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "19.66",
"eval_cost": "2.10",
"prefix_cost": "21.76",
"data_read_per_join": "1008"
},
"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": 21,
"filtered": "100.00",
"cost_info": {
"read_cost": "16.25",
"eval_cost": "2.10",
"prefix_cost": "40.11",
"data_read_per_join": "16K"
},
"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 |
| Acrylic |
111342 |
27753 |
1 |
5.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Light Pink |
111344 |
27754 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Script/Sans |
111357 |
27755 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Partial |
111359 |
27756 |
1 |
5.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Painted Wood |
111343 |
27753 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Dark Pink |
111345 |
27754 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Sans/Script |
111358 |
27755 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Complete |
111360 |
27756 |
2 |
10.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Light Yellow |
111346 |
27754 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| None |
111361 |
27756 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Dark Yellow |
111347 |
27754 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| It's A Surprise! |
111362 |
27756 |
4 |
15.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Light Green |
111348 |
27754 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Dark Green |
111349 |
27754 |
6 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Light Teal |
111350 |
27754 |
7 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Dark Teal |
111351 |
27754 |
8 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Light Blue |
111352 |
27754 |
9 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Dark Blue |
111353 |
27754 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Light Purple |
111354 |
27754 |
11 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Dark Purple |
111355 |
27754 |
12 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Custom |
111356 |
27754 |
13 |
10.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|