Query time 0.00397
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "83.64"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "28.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": 28,
"rows_produced_per_join": 28,
"filtered": "100.00",
"index_condition": "((`goimagine`.`a`.`option_id` in (3353,3358,3360,3354,3355,3359,3357,8866,8865)) and (`goimagine`.`a`.`status` = 'A'))",
"cost_info": {
"read_cost": "28.34",
"eval_cost": "2.80",
"prefix_cost": "31.14",
"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": 28,
"filtered": "100.00",
"cost_info": {
"read_cost": "21.70",
"eval_cost": "2.80",
"prefix_cost": "55.64",
"data_read_per_join": "21K"
},
"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 |
| TEA SPOON |
14511 |
3353 |
0 |
0.000 |
A |
0.030 |
A |
0.000 |
A |
A |
|
| TABLE SPOON |
14512 |
3353 |
0 |
2.000 |
A |
0.030 |
A |
0.000 |
A |
A |
|
| JAN |
14515 |
3355 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| FEB |
14516 |
3355 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| MAR |
14517 |
3355 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| APR |
14518 |
3355 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| MAY |
14519 |
3355 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| JUN |
14520 |
3355 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| JUL |
14521 |
3355 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| AUG |
14522 |
3355 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| SEP |
14523 |
3355 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| OCT |
14524 |
3355 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| NOV |
14525 |
3355 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| DEC |
14526 |
3355 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| without birthstone |
14527 |
3355 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
|
14529 |
3359 |
0 |
0.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| Tea spoon write on spoon & handle |
14562 |
3353 |
0 |
3.000 |
A |
0.030 |
A |
0.000 |
A |
A |
|
| Table spoon write on spoon & handle |
14563 |
3353 |
0 |
4.000 |
A |
0.030 |
A |
0.000 |
A |
A |
|
| pin |
14513 |
3354 |
1 |
0.000 |
A |
0.030 |
A |
0.000 |
A |
A |
|
|
14528 |
3359 |
1 |
5.000 |
A |
0.000 |
A |
0.000 |
A |
A |
|
| ALUMINUM |
39295 |
8866 |
1 |
0.000 |
A |
0.030 |
A |
0.000 |
A |
A |
|
| Pin/Necklace |
14514 |
3354 |
2 |
5.000 |
A |
0.030 |
A |
0.000 |
A |
A |
|
| COPPER |
39296 |
8866 |
2 |
4.000 |
A |
0.030 |
A |
0.000 |
A |
A |
|
| BRASS |
39297 |
8866 |
3 |
5.000 |
A |
0.030 |
A |
0.000 |
A |
A |
|