Query time 0.00584
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "43.78"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "15.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": 15,
"rows_produced_per_join": 15,
"filtered": "100.00",
"index_condition": "((`goimagine`.`a`.`option_id` in (3130,2466,3343,8414,3124,20607)) and (`goimagine`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "15.00",
"eval_cost": "1.50",
"prefix_cost": "16.50",
"data_read_per_join": "720"
},
"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": 15,
"filtered": "100.00",
"cost_info": {
"read_cost": "10.78",
"eval_cost": "1.50",
"prefix_cost": "28.78",
"data_read_per_join": "11K"
},
"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 |
| Stainless Steel |
10735 |
2466 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Silver Plate Post |
13473 |
3124 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Stainless Steel |
13485 |
3130 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Gold plated earwires |
14447 |
3343 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Earrings Only |
37733 |
8414 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Brass Ear Wire |
80937 |
20607 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Sterling Silver |
10734 |
2466 |
2 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Stainless Steel French Hook |
13474 |
3124 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Sterling Silver |
13486 |
3130 |
2 |
3.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Gold-filled earwires |
14448 |
3343 |
2 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Necklace Only |
37734 |
8414 |
2 |
30.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Stainless Steel Ear Wires |
80939 |
20607 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Sterling French Hook |
13475 |
3124 |
3 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Necklace and Earring Set |
37735 |
8414 |
3 |
45.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Sterling Silver Ear Wire |
80938 |
20607 |
3 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|