Query time 0.00101
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "53.87"
},
"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 (3054,9268,25173,9264)) and (`goimagine`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "17.18",
"eval_cost": "1.90",
"prefix_cost": "19.08",
"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": "13.89",
"eval_cost": "1.90",
"prefix_cost": "34.87",
"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 |
| 11" x 14" matted photo |
13153 |
3054 |
10 |
15.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| None selected (Optional) |
50838 |
9264 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 16" x 24" Canvas |
99149 |
25173 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 16" x 20" matted photo |
13154 |
3054 |
20 |
45.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 16" x 20" or 20" x 30" Canvas Black Frame |
41023 |
9264 |
20 |
79.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 20" x 30" Canvas |
99150 |
25173 |
20 |
40.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 8" x 12" photo |
13155 |
3054 |
30 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 16" x 20" or 20" x 30" Canvas Walnut Frame |
41024 |
9264 |
30 |
79.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 24" x 36" Canvas |
99151 |
25173 |
30 |
85.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 12" x 18" photo |
13156 |
3054 |
40 |
23.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 24" x 36" or 32" x 48" Canvas Black Frame |
41025 |
9264 |
40 |
99.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 32" x 48" Canvas |
99152 |
25173 |
40 |
200.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 16" x 24" photo |
13157 |
3054 |
50 |
65.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 24" x 36" or 32" x 48" Canvas Walnut Frame |
41026 |
9264 |
50 |
99.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 20" x 30" photo |
13158 |
3054 |
60 |
95.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 8" x 10" photo cropped |
50835 |
3054 |
70 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 11" x 14" photo cropped |
50836 |
3054 |
80 |
10.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 16" x 24" framed photo |
24890 |
3054 |
90 |
160.050 |
A |
0.000 |
A |
0.000 |
A |
A |
|