Query time 0.00467
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "76.95"
},
"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 (20539,20540,20358,20359,20360,20361,19800,19801,19802)) and (`goimagine`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "27.32",
"eval_cost": "2.50",
"prefix_cost": "29.82",
"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.63",
"eval_cost": "2.50",
"prefix_cost": "51.95",
"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 |
| Home |
77712 |
19800 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Maple |
77715 |
19801 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 12" x 4.5" x .6" Inches |
80061 |
20358 |
1 |
0.000 |
A |
1.100 |
A |
0.000 |
A |
A |
|
| Maple |
80063 |
20359 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Small Board - 6" x 8.75" |
80675 |
20539 |
1 |
0.000 |
A |
1.500 |
A |
0.000 |
A |
A |
|
| Home Sweet Home |
77713 |
19800 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Red Oak |
77716 |
19801 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 18" x 6" x .6" Inches |
80062 |
20358 |
2 |
10.000 |
A |
1.800 |
A |
0.000 |
A |
A |
|
| Red Oak |
80064 |
20359 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Large Board - 8" x 12" |
80676 |
20539 |
2 |
10.000 |
A |
3.000 |
A |
0.000 |
A |
A |
|
| Our First Home |
77714 |
19800 |
3 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Walnut |
77717 |
19801 |
3 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Walnut |
80065 |
20359 |
3 |
1.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Hickory |
77718 |
19801 |
4 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Cherry |
80066 |
20359 |
4 |
1.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Cedar |
77719 |
19801 |
5 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Mahogany |
80067 |
20359 |
5 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Cherry |
77720 |
19801 |
6 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Cedar |
80068 |
20359 |
6 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Mahogany |
77721 |
19801 |
7 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Hickory |
80069 |
20359 |
7 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|