Query time 0.00212
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "128.31"
},
"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": 92,
"rows_produced_per_join": 92,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`p`.`product_id` in (4974,5376,5397,4995,5549,4992,4991,5346,6823,5472,5387,5565,5309,5386,5568,5393,4988,5468,5394,5375,5396,4961,5467,5370,5566,4989,5377,5369,5567,5477,5374,5550,5388,5541,5564,5544,5555,5371,5392,5466,5390,5372,5473,6773,5546,5391,5389,5398,5469,5543,5470,5547,5534,5471,5538,5542,5548,6245,6253,6241,6207,6220,6243,6553,7516,11255,11277,11280,10412,7514,7521,7515,7519,7524,10371,11222,10411,11102,11112,10999,11120,11311,11312,11098,11262,11283,11314,11285,11286,11290))",
"cost_info": {
"read_cost": "54.71",
"eval_cost": "9.20",
"prefix_cost": "63.91",
"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": 92,
"filtered": "100.00",
"cost_info": {
"read_cost": "23.00",
"eval_cost": "9.20",
"prefix_cost": "96.11",
"data_read_per_join": "35K"
},
"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": 92,
"filtered": "100.00",
"cost_info": {
"read_cost": "23.00",
"eval_cost": "9.20",
"prefix_cost": "128.31",
"data_read_per_join": "9K"
},
"used_columns": [
"feature_id",
"purpose",
"group_id"
]
}
}
]
}
}
Result
| feature_id |
purpose |
product_id |
parent_product_id |
id |
code |
| 656 |
group_variation_catalog_item |
4974 |
0 |
563 |
PV-2705B5DDB |
| 656 |
group_variation_catalog_item |
4991 |
0 |
569 |
PV-447CCD2A1 |
| 656 |
group_variation_catalog_item |
4995 |
0 |
567 |
PV-0630AE1E1 |
| 656 |
group_variation_catalog_item |
5309 |
0 |
590 |
PV-6B629A41B |
| 656 |
group_variation_catalog_item |
5346 |
0 |
1097 |
PV-5ECB633E2 |
| 656 |
group_variation_catalog_item |
10412 |
0 |
993 |
PV-2E8BB0F8F |
| 656 |
group_variation_catalog_item |
11222 |
0 |
1085 |
PV-35F6F2926 |
| 656 |
group_variation_catalog_item |
11255 |
0 |
1088 |
PV-8C66B7F05 |
| 656 |
group_variation_catalog_item |
11277 |
0 |
1091 |
PV-66632824C |
| 656 |
group_variation_catalog_item |
11280 |
0 |
1092 |
PV-5CF92C949 |