Query time 0.00355
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "54.52"
},
"nested_loop": [
{
"table": {
"table_name": "pfv",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"variant_id",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id",
"fl"
],
"key": "idx_product_feature_variant_id",
"used_key_parts": [
"product_id",
"feature_id",
"lang_code"
],
"key_length": "12",
"rows_examined_per_scan": 48,
"rows_produced_per_join": 48,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "5.50",
"eval_cost": "4.80",
"prefix_cost": "10.30",
"data_read_per_join": "1K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"attached_condition": "((`cscart_db`.`pfv`.`feature_id` in (67,103,65,63,74,102)) and (`cscart_db`.`pfv`.`product_id` in (65146,65190,65192,65163,65184,65178,65175,65177)) and (`cscart_db`.`pfv`.`lang_code` = 'en'))"
}
},
{
"table": {
"table_name": "fv",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"feature_id",
"variant_feature_idx",
"idx_var_feat_pos"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id"
],
"key_length": "3",
"ref": [
"cscart_db.pfv.variant_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 32,
"filtered": "67.20",
"cost_info": {
"read_cost": "20.57",
"eval_cost": "3.23",
"prefix_cost": "35.67",
"data_read_per_join": "36K"
},
"used_columns": [
"variant_id",
"feature_id",
"position"
],
"attached_condition": "(`cscart_db`.`fv`.`feature_id` = `cscart_db`.`pfv`.`feature_id`)"
}
},
{
"table": {
"table_name": "fvd",
"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": 32,
"filtered": "100.00",
"cost_info": {
"read_cost": "15.62",
"eval_cost": "3.23",
"prefix_cost": "54.52",
"data_read_per_join": "241K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
position |
variant |
| 65 |
65146 |
58069 |
0 |
100% Whey Protein Blend of Concentrate & Isolate |
| 67 |
65146 |
12444 |
0 |
3000 |
| 103 |
65146 |
25125 |
0 |
Double Chocolate |
| 65 |
65163 |
58084 |
0 |
Whey Protola Concentrate |
| 102 |
65163 |
62258 |
0 |
4 lbs |
| 103 |
65163 |
47878 |
0 |
Double Rich Chocolate |
| 63 |
65175 |
10348 |
0 |
India |
| 65 |
65175 |
58094 |
0 |
1000 mg omega-3 |
| 74 |
65175 |
19150 |
0 |
Single |
| 102 |
65175 |
62257 |
0 |
60 Tablets |
| 63 |
65177 |
10348 |
0 |
India |
| 65 |
65177 |
58096 |
0 |
Maltodextrin |
| 74 |
65177 |
19150 |
0 |
Single |
| 102 |
65177 |
62258 |
0 |
4 lbs |
| 103 |
65177 |
62293 |
0 |
Chocolate Supreme |
| 63 |
65178 |
10348 |
0 |
India |
| 65 |
65178 |
58096 |
0 |
Maltodextrin |
| 74 |
65178 |
19150 |
0 |
Single |
| 102 |
65178 |
62259 |
0 |
2 lbs |
| 103 |
65178 |
62292 |
0 |
Chocolate Fudge |
| 63 |
65184 |
10348 |
0 |
India |
| 65 |
65184 |
58096 |
0 |
Maltodextrin |
| 74 |
65184 |
19150 |
0 |
Single |
| 102 |
65184 |
62259 |
0 |
2 lbs |
| 103 |
65184 |
62294 |
0 |
Creamy Strawberry |
| 63 |
65190 |
10348 |
0 |
India |
| 65 |
65190 |
58116 |
0 |
Fructo-oligosaccharides |
| 67 |
65190 |
12412 |
0 |
100 |
| 74 |
65190 |
19049 |
0 |
Pack of 2 |
| 103 |
65190 |
22195 |
0 |
Blueberry |
| 63 |
65192 |
10348 |
0 |
India |
| 65 |
65192 |
58116 |
0 |
Fructo-oligosaccharides |
| 67 |
65192 |
12412 |
0 |
100 |
| 74 |
65192 |
19049 |
0 |
Pack of 2 |
| 103 |
65192 |
21907 |
40 |
Orange |