Query time 0.00177
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "225.16"
},
"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": 161,
"rows_produced_per_join": 161,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`p`.`product_id` in (3925,2807,3415,2612,3077,3409,3411,3413,3550,3878,3515,3875,2926,3748,3128,2543,3288,3035,3220,3410,3599,5107,6112,3043,3880,2429,3805,2921,3095,3524,3742,3668,3044,3168,3527,3535,3360,3702,3536,3101,3167,3750,3830,3592,3670,3684,3600,3874,3365,3437,3682,3879,3753,2952,3230,3108,3303,3376,3412,3436,3554,5104,3103,3530,3945,3438,3545,3555,5895,5868,3687,3860,3858,3853,3857,3863,3862,3854,3727,3699,3855,3859,5105,8812,6163,6853,6161,7807,6062,6854,6060,6061,7823,7838,7827,6821,7829,7811,7866,10103,6852,7841,6850,6855,7856,7861,10160,7863,7840,7812,7855,7860,7868,7869,7870,10242,7813,7825,8242,8373,8517,8700,10246,7837,7864,8285,8287,8330,8374,8571,8726,8728,8803,10085,10099,10106,10256,7859,8268,8331,8378,8436,8442,8579,8583,8606,8727,10107,10166,7858,7862,8270,8286,8376,8384,8402,8467,8468,8531,8533))",
"cost_info": {
"read_cost": "96.36",
"eval_cost": "16.10",
"prefix_cost": "112.46",
"data_read_per_join": "2K"
},
"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": 161,
"filtered": "100.00",
"cost_info": {
"read_cost": "40.25",
"eval_cost": "16.10",
"prefix_cost": "168.81",
"data_read_per_join": "62K"
},
"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": 161,
"filtered": "100.00",
"cost_info": {
"read_cost": "40.25",
"eval_cost": "16.10",
"prefix_cost": "225.16",
"data_read_per_join": "16K"
},
"used_columns": [
"feature_id",
"purpose",
"group_id"
]
}
}
]
}
}
Result
| feature_id |
purpose |
product_id |
parent_product_id |
id |
code |
| 656 |
group_variation_catalog_item |
3220 |
0 |
365 |
PV-A7968E0F7 |
| 656 |
group_variation_catalog_item |
3413 |
0 |
445 |
PV-74A0B0DB3 |
| 656 |
group_variation_catalog_item |
3515 |
0 |
398 |
PV-E4EBE4677 |
| 708 |
group_variation_catalog_item |
3668 |
0 |
461 |
PV-306428281 |
| 708 |
group_variation_catalog_item |
3682 |
0 |
462 |
PV-0116BA094 |
| 708 |
group_variation_catalog_item |
3684 |
0 |
463 |
PV-2A06E7D93 |
| 656 |
group_variation_catalog_item |
3748 |
0 |
423 |
PV-A307EB231 |
| 656 |
group_variation_catalog_item |
7811 |
0 |
776 |
PV-39C0C2069 |
| 656 |
group_variation_catalog_item |
7827 |
0 |
777 |
PV-91F6D99B2 |
| 656 |
group_variation_catalog_item |
7829 |
0 |
778 |
PV-E2EEE7D2C |
| 656 |
group_variation_catalog_item |
7838 |
0 |
779 |
PV-70617BA72 |
| 656 |
group_variation_catalog_item |
7841 |
0 |
780 |
PV-41031AB44 |
| 656 |
group_variation_catalog_item |
7856 |
0 |
796 |
PV-870FCF8CA |
| 656 |
group_variation_catalog_item |
7863 |
0 |
781 |
PV-806D5EFE6 |
| 656 |
group_variation_catalog_item |
7866 |
0 |
782 |
PV-82F0452C2 |