Query time 0.00116
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "25.21"
},
"nested_loop": [
{
"table": {
"table_name": "gpf",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"key": "idx_group_id",
"used_key_parts": [
"group_id"
],
"key_length": "3",
"rows_examined_per_scan": 9,
"rows_produced_per_join": 9,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`gpf`.`group_id` in (183,505,610,643,646,481,182,456,486))",
"cost_info": {
"read_cost": "5.41",
"eval_cost": "0.90",
"prefix_cost": "6.31",
"data_read_per_join": "936"
},
"used_columns": [
"feature_id",
"group_id"
]
}
},
{
"table": {
"table_name": "gp",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"key": "idx_group_id",
"used_key_parts": [
"group_id"
],
"key_length": "3",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.gpf.group_id"
],
"rows_examined_per_scan": 3,
"rows_produced_per_join": 27,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.75",
"eval_cost": "2.70",
"prefix_cost": "15.76",
"data_read_per_join": "432"
},
"used_columns": [
"product_id",
"group_id"
]
}
},
{
"table": {
"table_name": "pfv",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"fl",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "fpl",
"used_key_parts": [
"feature_id",
"product_id",
"lang_code"
],
"key_length": "12",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.gpf.feature_id",
"softwarepirmam_hewadelivard_cscart_4.gp.product_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 27,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.75",
"eval_cost": "2.70",
"prefix_cost": "25.21",
"data_read_per_join": "20K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 656 |
2393 |
1560 |
182 |
| 656 |
2394 |
1559 |
182 |
| 656 |
2395 |
1558 |
183 |
| 656 |
2396 |
1559 |
183 |
| 656 |
2397 |
1560 |
183 |
| 656 |
2398 |
1600 |
183 |
| 656 |
4058 |
3814 |
456 |
| 656 |
4059 |
3809 |
456 |
| 656 |
4134 |
1559 |
456 |
| 656 |
4192 |
1600 |
481 |
| 656 |
4193 |
2315 |
481 |
| 656 |
4226 |
1559 |
486 |
| 656 |
4227 |
1600 |
486 |
| 656 |
4294 |
1912 |
505 |
| 656 |
4295 |
2077 |
505 |
| 656 |
5624 |
1559 |
610 |
| 656 |
5625 |
1560 |
610 |
| 656 |
5900 |
1560 |
643 |
| 656 |
5899 |
1559 |
643 |
| 656 |
5934 |
1559 |
646 |
| 656 |
5935 |
1560 |
646 |