Query time 0.00158
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "16.81"
},
"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": 6,
"rows_produced_per_join": 6,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`gpf`.`group_id` in (498,660,582,574,576,288))",
"cost_info": {
"read_cost": "3.61",
"eval_cost": "0.60",
"prefix_cost": "4.21",
"data_read_per_join": "624"
},
"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": 18,
"filtered": "100.00",
"cost_info": {
"read_cost": "4.50",
"eval_cost": "1.80",
"prefix_cost": "10.51",
"data_read_per_join": "288"
},
"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": 18,
"filtered": "100.00",
"cost_info": {
"read_cost": "4.50",
"eval_cost": "1.80",
"prefix_cost": "16.81",
"data_read_per_join": "13K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 656 |
2837 |
1600 |
288 |
| 656 |
2838 |
1560 |
288 |
| 656 |
2839 |
1596 |
288 |
| 656 |
4245 |
1775 |
498 |
| 656 |
4257 |
1559 |
498 |
| 656 |
5129 |
1559 |
574 |
| 656 |
5126 |
1914 |
574 |
| 656 |
5135 |
1559 |
576 |
| 656 |
5133 |
1560 |
576 |
| 656 |
5157 |
1560 |
582 |
| 656 |
5158 |
1559 |
582 |
| 656 |
6019 |
5636 |
660 |
| 656 |
6020 |
1559 |
660 |
| 656 |
6021 |
1560 |
660 |
| 656 |
6022 |
1782 |
660 |
| 656 |
6023 |
2986 |
660 |