Query time 0.00091
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "52.57"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "18.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": 18,
"rows_produced_per_join": 18,
"filtered": "100.00",
"index_condition": "((`goimagine`.`a`.`option_id` in (34277,34281,34004,33935,33676)) and (`goimagine`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "17.61",
"eval_cost": "1.80",
"prefix_cost": "19.41",
"data_read_per_join": "864"
},
"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": 18,
"filtered": "100.00",
"cost_info": {
"read_cost": "13.36",
"eval_cost": "1.80",
"prefix_cost": "34.57",
"data_read_per_join": "13K"
},
"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 |
| 3 Quilt Center |
133122 |
33676 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 3 Muslin Center |
133123 |
33676 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 3 Assorted |
133124 |
33676 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| grey |
134279 |
33935 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Plain Finish |
134471 |
34004 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Mica Finish |
134472 |
34004 |
0 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Glass Glitter |
134473 |
34004 |
0 |
2.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 3 Red |
135037 |
34277 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 3 Green |
135038 |
34277 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Mix of Red and Green |
135039 |
34277 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 5 Red |
135040 |
34277 |
0 |
10.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 5 Green |
135041 |
34277 |
0 |
10.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 5 Mix of Red and Green |
135042 |
34277 |
0 |
10.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Scents Available |
135221 |
34281 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| strawberry |
135652 |
34281 |
1 |
3.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| sugar cookie |
135220 |
34281 |
2 |
3.000 |
A |
0.120 |
A |
0.000 |
A |
A |
|
| apple jack |
135053 |
34281 |
3 |
3.000 |
A |
0.120 |
A |
0.000 |
A |
A |
|
| Cinnamon |
135222 |
34281 |
4 |
3.000 |
A |
0.120 |
A |
0.000 |
A |
A |
|