{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "146.46"
},
"grouping_operation": {
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "cscart_products_categories",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "pt",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"rows_examined_per_scan": 174,
"rows_produced_per_join": 174,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_products_categories`.`product_id` in (4974,4995,4992,5008,4991,5969,5024,5017,5002,4988,5007,5019,5010,5018,5005,5011,5014,5021,5022,5006,4961,5009,5013,4989,5004,5020,5016,5023,9699))",
"cost_info": {
"read_cost": "68.16",
"eval_cost": "17.40",
"prefix_cost": "85.56",
"data_read_per_join": "2K"
},
"used_columns": [
"product_id",
"category_id",
"link_type"
]
}
},
{
"table": {
"table_name": "cscart_categories",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.cscart_products_categories.category_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 8,
"filtered": "5.00",
"cost_info": {
"read_cost": "43.50",
"eval_cost": "0.87",
"prefix_cost": "146.46",
"data_read_per_join": "27K"
},
"used_columns": [
"category_id",
"storefront_id",
"usergroup_ids",
"status"
],
"attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`storefront_id` in (0,1)) and ((`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`usergroup_ids`))) and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`status` in ('A','H')))"
}
}
]
}
}
}
| product_id | category_ids |
|---|---|
| 4961 | 556,552,372,553,250,554M |
| 4974 | 372,552,556,553,250,554M |
| 4988 | 552,553,554,372,250,556M |
| 4989 | 552,553,554,372,250,556M |
| 4991 | 552,554,553,372,250,556M |
| 4992 | 552,553,554,250,372,556M |
| 4995 | 552,553,554,372,250,556M |
| 5002 | 563,555,557,552,553,372,250,561M |
| 5004 | 561,555,557,552,553,372,250,563M |
| 5005 | 561,555,557,552,553,372,250,563M |
| 5006 | 561,555,557,552,553,372,250,563M |
| 5007 | 561,555,557,552,553,372,250,563M |
| 5008 | 561,555,557,552,553,372,250,563M |
| 5009 | 561,555,557,552,553,372,250,563M |
| 5010 | 561,555,557,552,553,372,250,563M |
| 5011 | 561,555,557,552,553,372,250,563M |
| 5013 | 561,555,557,552,553,372,250,563M |
| 5014 | 561,555,557,552,553,372,250,563M |
| 5016 | 561,555,557,552,553,372,250,563M |
| 5017 | 561,555,557,552,553,372,250,563M |
| 5018 | 561,555,557,552,553,372,250,563M |
| 5019 | 561,555,557,552,553,372,250,563M |
| 5020 | 561,555,557,552,553,372,250,563M |
| 5021 | 561,555,557,552,553,372,250,563M |
| 5022 | 561,555,557,552,553,372,250,563M |
| 5023 | 561,555,557,552,553,372,250,563M |
| 5024 | 563,555,557,552,553,372,250,561M |
| 5969 | 561,555,557,552,553,372,250,563M |
| 9699 | 552,553M |