Query time 0.00066
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "11.93"
},
"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": 15,
"rows_produced_per_join": 15,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "2.17",
"eval_cost": "1.50",
"prefix_cost": "3.67",
"data_read_per_join": "17K"
},
"used_columns": [
"variant_id",
"position"
],
"attached_condition": "(`cscart_db`.`pfv`.`variant_id` in (26717,24794,12434,19150,25605,21902,12444,25125,58069,10348,58116,22195,19049,12412,21907))"
}
},
{
"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": 15,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.76",
"eval_cost": "1.50",
"prefix_cost": "11.93",
"data_read_per_join": "112K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| variant_id |
position |
variant |
| 10348 |
0 |
India |
| 12412 |
0 |
100 |
| 12434 |
0 |
1000 |
| 12444 |
0 |
3000 |
| 19049 |
0 |
Pack of 2 |
| 19150 |
0 |
Single |
| 21902 |
20 |
Chocolate |
| 21907 |
40 |
Orange |
| 22195 |
0 |
Blueberry |
| 24794 |
0 |
400 gm |
| 25125 |
0 |
Double Chocolate |
| 25605 |
0 |
Maltodextrin |
| 26717 |
0 |
900 gm |
| 58069 |
0 |
100% Whey Protein Blend of Concentrate & Isolate |
| 58116 |
0 |
Fructo-oligosaccharides |