Query time 0.00228
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "22.19"
},
"nested_loop": [
{
"table": {
"table_name": "pfv",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"fl",
"variant_id",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "idx_product_feature_variant_id",
"used_key_parts": [
"product_id",
"feature_id",
"lang_code"
],
"key_length": "12",
"rows_examined_per_scan": 38,
"rows_produced_per_join": 38,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "4.43",
"eval_cost": "3.80",
"prefix_cost": "8.23",
"data_read_per_join": "29K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`feature_id` = 656) and (`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`product_id` in (2603,3136,2587,2761,2694,3096,2723,2742,3556,2593,3104,2618,2828,2613,2619,2872,2704,3593,4888,3423,2739,5998,2841,5155,3876,3812,5124,6007,2865,6005,6019,5157,5121,6013,6271,5980,5981,10022)) and (`softwarepirmam_hewadelivard_cscart_4`.`pfv`.`lang_code` = 'en'))"
}
},
{
"table": {
"table_name": "fv",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"feature_id"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id"
],
"key_length": "3",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.pfv.variant_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "5.00",
"cost_info": {
"read_cost": "9.50",
"eval_cost": "0.19",
"prefix_cost": "21.53",
"data_read_per_join": "2K"
},
"used_columns": [
"variant_id",
"feature_id",
"position"
],
"attached_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`fv`.`feature_id` = 656)"
}
},
{
"table": {
"table_name": "fvd",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.pfv.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.48",
"eval_cost": "0.19",
"prefix_cost": "22.20",
"data_read_per_join": "5K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
position |
variant |
| 656 |
2587 |
1560 |
0 |
Black |
| 656 |
2593 |
2315 |
0 |
Red |
| 656 |
2603 |
1600 |
0 |
Blue |
| 656 |
2613 |
1600 |
0 |
Blue |
| 656 |
2618 |
1560 |
0 |
Black |
| 656 |
2619 |
1560 |
0 |
Black |
| 656 |
2694 |
1560 |
0 |
Black |
| 656 |
2704 |
2315 |
0 |
Red |
| 656 |
2723 |
1560 |
0 |
Black |
| 656 |
2739 |
1600 |
0 |
Blue |
| 656 |
2742 |
1560 |
0 |
Black |
| 656 |
2761 |
1558 |
80 |
Pink |
| 656 |
2828 |
1560 |
0 |
Black |
| 656 |
2841 |
1559 |
0 |
white |
| 656 |
2865 |
1560 |
0 |
Black |
| 656 |
2872 |
1560 |
0 |
Black |
| 656 |
3096 |
1560 |
0 |
Black |
| 656 |
3104 |
1560 |
0 |
Black |
| 656 |
3136 |
1560 |
0 |
Black |
| 656 |
3423 |
1559 |
0 |
white |
| 656 |
3556 |
1560 |
0 |
Black |
| 656 |
3593 |
1560 |
0 |
Black |
| 656 |
3812 |
1560 |
0 |
Black |
| 656 |
3876 |
1559 |
0 |
white |
| 656 |
4888 |
1790 |
0 |
Creamy |
| 656 |
5121 |
1560 |
0 |
Black |
| 656 |
5124 |
1560 |
0 |
Black |
| 656 |
5155 |
1560 |
0 |
Black |
| 656 |
5157 |
1560 |
0 |
Black |
| 656 |
5980 |
1560 |
0 |
Black |
| 656 |
5981 |
1560 |
0 |
Black |
| 656 |
5998 |
1559 |
0 |
white |
| 656 |
6005 |
7064 |
0 |
Deep blue |
| 656 |
6007 |
1560 |
0 |
Black |
| 656 |
6013 |
6252 |
0 |
Plum |
| 656 |
6019 |
5636 |
0 |
Black with gold accents |
| 656 |
6271 |
8034 |
0 |
Ceramic Cinnabar |
| 656 |
10022 |
1560 |
0 |
Black |