Query time 0.00092
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "30.46"
},
"nested_loop": [
{
"table": {
"table_name": "pfv",
"access_type": "range",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id"
],
"key_length": "3",
"rows_examined_per_scan": 29,
"rows_produced_per_join": 29,
"filtered": "100.00",
"index_condition": "(`cscartdb`.`pfv`.`variant_id` in (1859,1858,1857,1856,1855,1854,1853,1852,1851,1850,3929,3924,3928,3927,3926,3925,4229,4228,4608,4606,5648,5649,5650,6213,6214,6215,6216,6217,6218))",
"cost_info": {
"read_cost": "17.41",
"eval_cost": "2.90",
"prefix_cost": "20.31",
"data_read_per_join": "33K"
},
"used_columns": [
"variant_id",
"position"
]
}
},
{
"table": {
"table_name": "pfvd",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"ref": [
"cscartdb.pfv.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 29,
"filtered": "100.00",
"cost_info": {
"read_cost": "7.25",
"eval_cost": "2.90",
"prefix_cost": "30.46",
"data_read_per_join": "87K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
variant_id |
position |
variant |
1850 |
0 |
Black |
1851 |
1 |
Grey |
1852 |
2 |
Burgundy |
1853 |
3 |
Navy |
1854 |
4 |
Gold |
1855 |
5 |
Rose Gold |
1856 |
6 |
Pink |
1857 |
7 |
Beige |
1858 |
8 |
White |
1859 |
9 |
Silver Grey |
3924 |
0 |
Taro Grey |
3925 |
1 |
Italian Parsley |
3926 |
2 |
Blue Macaron |
3927 |
3 |
Chestnut Cream |
3928 |
4 |
Himalayan Salt |
3929 |
5 |
Charcoal Icecream |
4228 |
0 |
Without Nose Opening |
4229 |
1 |
With Nose Opening |
4606 |
0 |
Black |
4608 |
2 |
Red |
5648 |
1 |
BLACK KITTEN KIT |
5649 |
2 |
PINK KITTEN KIT |
5650 |
0 |
PURPLE KITTEN KIT |
6213 |
0 |
Black |
6214 |
1 |
White |
6215 |
2 |
Tokyo Blue |
6216 |
3 |
Osaka Red |
6217 |
4 |
Purple Orchid |
6218 |
5 |
Fuji Pink |