Query time 0.00354
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "74.12"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "25.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": 25,
"rows_produced_per_join": 25,
"filtered": "100.00",
"index_condition": "((`goimagine`.`a`.`option_id` in (6071,4839,4923,29529)) and (`goimagine`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "24.25",
"eval_cost": "2.50",
"prefix_cost": "26.75",
"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": 25,
"filtered": "100.00",
"cost_info": {
"read_cost": "19.88",
"eval_cost": "2.50",
"prefix_cost": "49.13",
"data_read_per_join": "19K"
},
"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 |
| Orange (SOLD OUT) |
27116 |
6071 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Black/Orange (5 available) |
27117 |
6071 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Black/Purple (5 available) |
59677 |
6071 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Red |
21500 |
4839 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Mermaid |
21888 |
4923 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Orange (2 available) |
117669 |
29529 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Orange |
21501 |
4839 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Dolphin |
21889 |
4923 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Black (4 available) |
117670 |
29529 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Orange/Brown |
21503 |
4839 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Sand Dollar |
21890 |
4923 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Green |
21502 |
4839 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Octopus |
21891 |
4923 |
4 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Yellow |
21504 |
4839 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Palm Tree |
21892 |
4923 |
5 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Turtle |
21893 |
4923 |
6 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Shell |
21894 |
4923 |
7 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Jelly Fish |
21895 |
4923 |
8 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Conch |
21896 |
4923 |
9 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Coral |
21897 |
4923 |
10 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Nautilus Shell |
21898 |
4923 |
11 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Starfish |
21899 |
4923 |
12 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Seahorse |
21900 |
4923 |
13 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Crab |
21901 |
4923 |
14 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Anchor |
21902 |
4923 |
15 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|