Query time 0.00120
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "113.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": 81,
"rows_produced_per_join": 81,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`p`.`product_id` in (2282,2285,2904,2900,2909,2887,2890,2888,2886,8380,7741,10237,10140,10197,10020,10299,8379,10167,10344,10032,10177,10178,10345,8439,10249,10222,10035,10147,10172,10048,10193,10276,10039,10095,10228,10192,10058,8345,10239,10148,10156,10023,10103,10026,10074,10088,10174,10233,10226,10219,10244,10105,10157,10160,10059,9972,10274,10294,10022,10104,10247,10261,9952,10159,10161,10225,10254,10255,10273,9937,9968,10071,10272,9969,10047,10050,10056,10093,10232,10238))",
"cost_info": {
"read_cost": "48.36",
"eval_cost": "8.10",
"prefix_cost": "56.46",
"data_read_per_join": "1K"
},
"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": 81,
"filtered": "100.00",
"cost_info": {
"read_cost": "20.25",
"eval_cost": "8.10",
"prefix_cost": "84.81",
"data_read_per_join": "31K"
},
"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": 81,
"filtered": "100.00",
"cost_info": {
"read_cost": "20.25",
"eval_cost": "8.10",
"prefix_cost": "113.16",
"data_read_per_join": "8K"
},
"used_columns": [
"feature_id",
"purpose",
"group_id"
]
}
}
]
}
}
Result
| feature_id |
purpose |
product_id |
parent_product_id |
id |
code |
| 656 |
group_variation_catalog_item |
7741 |
0 |
774 |
PV-E80ABB7BD |
| 656 |
group_variation_catalog_item |
10022 |
0 |
951 |
PV-693A2BCA4 |
| 656 |
group_variation_catalog_item |
10023 |
0 |
949 |
PV-A61CFC47B |
| 656 |
group_variation_catalog_item |
10026 |
0 |
950 |
PV-A4CAF2FD3 |
| 656 |
group_variation_catalog_item |
10140 |
0 |
959 |
PV-1EB374E14 |
| 648 |
group_variation_catalog_item |
10140 |
0 |
959 |
PV-1EB374E14 |
| 656 |
group_variation_catalog_item |
10147 |
0 |
960 |
PV-6ED56E131 |
| 656 |
group_variation_catalog_item |
10222 |
0 |
970 |
PV-181CA3128 |
| 656 |
group_variation_catalog_item |
10226 |
0 |
971 |
PV-4A3EC41C3 |
| 656 |
group_variation_catalog_item |
10228 |
0 |
972 |
PV-C8858738E |
| 656 |
group_variation_catalog_item |
10233 |
0 |
973 |
PV-C434724B9 |
| 656 |
group_variation_catalog_item |
10276 |
0 |
974 |
PV-0A1B960D3 |
| 656 |
group_variation_catalog_item |
10294 |
0 |
976 |
PV-ED1375096 |