Query time 0.00340
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "67.30"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "22.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": 22,
"rows_produced_per_join": 22,
"filtered": "100.00",
"index_condition": "((`goimagine`.`a`.`option_id` in (36421,36487,36377,36378,36363,36364,36682,36422)) and (`goimagine`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "23.55",
"eval_cost": "2.20",
"prefix_cost": "25.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": 22,
"filtered": "100.00",
"cost_info": {
"read_cost": "17.36",
"eval_cost": "2.20",
"prefix_cost": "45.31",
"data_read_per_join": "16K"
},
"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 |
| Design 1 |
143502 |
36364 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Design 2 |
143503 |
36364 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Design 3 |
143504 |
36364 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Green |
143576 |
36421 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Blue |
143577 |
36421 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Pink |
143578 |
36421 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Copper |
143579 |
36421 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Gold |
143580 |
36421 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Purple |
143581 |
36421 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Silver |
143582 |
36422 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Black |
143583 |
36422 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Cat |
143832 |
36487 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Dog |
143833 |
36487 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Design 1 |
144601 |
36682 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Design 2 |
144602 |
36682 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Design 3 |
144603 |
36682 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 6x9 |
143500 |
36363 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Plain |
143540 |
36377 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Clear |
143542 |
36378 |
1 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| 10x14 |
143501 |
36363 |
2 |
15.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Glitter |
143541 |
36377 |
2 |
5.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Frosted |
143543 |
36378 |
2 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|