Query time 0.00076
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "19.82"
},
"nested_loop": [
{
"table": {
"table_name": "pfv",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"variant_feature_idx",
"idx_var_feat_pos"
],
"key": "idx_var_feat_pos",
"used_key_parts": [
"variant_id"
],
"key_length": "3",
"rows_examined_per_scan": 26,
"rows_produced_per_join": 26,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "3.07",
"eval_cost": "2.60",
"prefix_cost": "5.67",
"data_read_per_join": "29K"
},
"used_columns": [
"variant_id",
"position"
],
"attached_condition": "(`cscart_db`.`pfv`.`variant_id` in (19936,62197,10351,62198,10348,19150,62089,22358,62090,62102,23655,62092,62091,35363,62061,62059,34106,62058,62114,24760,62113,45042,62094,62095,62096,62093))"
}
},
{
"table": {
"table_name": "pfvd",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"ref": [
"cscart_db.pfv.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 26,
"filtered": "100.00",
"cost_info": {
"read_cost": "11.55",
"eval_cost": "2.60",
"prefix_cost": "19.82",
"data_read_per_join": "194K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| variant_id |
position |
variant |
| 10348 |
0 |
India |
| 10351 |
0 |
South Korea |
| 19150 |
0 |
Single |
| 19936 |
0 |
6 |
| 22358 |
0 |
3 |
| 23655 |
0 |
Amethyst |
| 24760 |
0 |
7 |
| 34106 |
0 |
Pack |
| 35363 |
0 |
Ruby |
| 45042 |
0 |
Trending |
| 62058 |
0 |
Berry & Peony |
| 62059 |
0 |
Bronze & Bloom |
| 62061 |
0 |
3.6 |
| 62089 |
0 |
Bronzite |
| 62090 |
0 |
Rhodonite |
| 62091 |
0 |
Peach Moonstone |
| 62092 |
0 |
Black Onyx |
| 62093 |
0 |
No Filter |
| 62094 |
0 |
Verified |
| 62095 |
0 |
Double tap |
| 62096 |
0 |
Ghosted |
| 62102 |
0 |
Smoky Quartz |
| 62113 |
0 |
Swipe right |
| 62114 |
0 |
Unsend |
| 62197 |
0 |
01 Fig Beige |
| 62198 |
0 |
02 Soft Mauve |