Query time 0.00205
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "33.61"
},
"nested_loop": [
{
"table": {
"table_name": "p",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"idx_group_id"
],
"key": "PRIMARY",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"rows_examined_per_scan": 24,
"rows_produced_per_join": 24,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`p`.`product_id` in (3826,3660,3649,3733,3740,3743,3944,3741,3441,3811,3653,3946,3768,3734,3821,3747,3641,3952,3738,3435,3798,3443,3730,3737))",
"cost_info": {
"read_cost": "14.41",
"eval_cost": "2.40",
"prefix_cost": "16.81",
"data_read_per_join": "384"
},
"used_columns": [
"product_id",
"parent_product_id",
"group_id"
]
}
},
{
"table": {
"table_name": "g",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"id"
],
"key_length": "3",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.p.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.00",
"eval_cost": "2.40",
"prefix_cost": "25.21",
"data_read_per_join": "9K"
},
"used_columns": [
"id",
"code"
]
}
},
{
"table": {
"table_name": "f",
"access_type": "ref",
"possible_keys": [
"idx_group_id"
],
"key": "idx_group_id",
"used_key_parts": [
"group_id"
],
"key_length": "3",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.p.group_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.00",
"eval_cost": "2.40",
"prefix_cost": "33.61",
"data_read_per_join": "2K"
},
"used_columns": [
"feature_id",
"purpose",
"group_id"
]
}
}
]
}
}
Result
| feature_id |
purpose |
product_id |
parent_product_id |
id |
code |
| 656 |
group_variation_catalog_item |
3649 |
0 |
453 |
PV-DC215B1BB |
| 656 |
group_variation_catalog_item |
3734 |
0 |
464 |
PV-51A40D541 |
| 656 |
group_variation_catalog_item |
3798 |
0 |
465 |
PV-E0241A7B1 |
| 656 |
group_variation_catalog_item |
3811 |
0 |
466 |
PV-882568074 |
| 656 |
group_variation_catalog_item |
3826 |
0 |
460 |
PV-F0A707B4C |
| 656 |
group_variation_catalog_item |
3946 |
0 |
455 |
PV-63CBECEB0 |
| 656 |
group_variation_catalog_item |
3952 |
0 |
454 |
PV-B1F83A5F2 |