Query time 0.00153
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "25.51"
},
"nested_loop": [
{
"table": {
"table_name": "gp",
"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": 20,
"rows_produced_per_join": 20,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`gp`.`group_id` in (505,481,456,486,502,482,488,516,519,499))",
"cost_info": {
"read_cost": "9.51",
"eval_cost": "2.00",
"prefix_cost": "11.51",
"data_read_per_join": "320"
},
"used_columns": [
"product_id",
"group_id"
]
}
},
{
"table": {
"table_name": "gpf",
"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.gp.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 20,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.00",
"eval_cost": "2.00",
"prefix_cost": "18.51",
"data_read_per_join": "2K"
},
"used_columns": [
"feature_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": 20,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.00",
"eval_cost": "2.00",
"prefix_cost": "25.51",
"data_read_per_join": "15K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
]
}
}
]
}
}
Result
| feature_id |
product_id |
variant_id |
group_id |
| 656 |
4058 |
3814 |
456 |
| 656 |
4059 |
3809 |
456 |
| 656 |
4134 |
1559 |
456 |
| 656 |
4192 |
1600 |
481 |
| 656 |
4193 |
2315 |
481 |
| 656 |
4194 |
1560 |
482 |
| 656 |
4195 |
1559 |
482 |
| 656 |
4226 |
1559 |
486 |
| 656 |
4227 |
1600 |
486 |
| 656 |
4232 |
1912 |
488 |
| 656 |
4233 |
1559 |
488 |
| 656 |
4263 |
1560 |
499 |
| 656 |
4264 |
1559 |
499 |
| 656 |
4275 |
1751 |
502 |
| 656 |
4277 |
1725 |
502 |
| 656 |
4294 |
1912 |
505 |
| 656 |
4295 |
2077 |
505 |
| 656 |
4429 |
1560 |
516 |
| 656 |
4430 |
1559 |
516 |
| 656 |
4449 |
1560 |
519 |
| 656 |
4451 |
1559 |
519 |