{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "142.11"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "3.69"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "ALL",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"rows_examined_per_scan": 115,
"rows_produced_per_join": 2,
"filtered": "2.00",
"cost_info": {
"read_cost": "27.56",
"eval_cost": "0.46",
"prefix_cost": "28.02",
"data_read_per_join": "6K"
},
"used_columns": [
"category_id",
"company_id",
"usergroup_ids",
"status"
],
"attached_condition": "((`eshopuga_upgr_4122`.`cscart_categories`.`company_id` = 1) and ((`eshopuga_upgr_4122`.`cscart_categories`.`usergroup_ids` = '') or find_in_set(0,`eshopuga_upgr_4122`.`cscart_categories`.`usergroup_ids`) or find_in_set(1,`eshopuga_upgr_4122`.`cscart_categories`.`usergroup_ids`)) and (`eshopuga_upgr_4122`.`cscart_categories`.`status` in ('A','H')))"
}
},
{
"table": {
"table_name": "cscart_products_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"eshopuga_upgr_4122.cscart_categories.category_id"
],
"rows_examined_per_scan": 40,
"rows_produced_per_join": 3,
"filtered": "4.01",
"index_condition": "(`eshopuga_upgr_4122`.`cscart_products_categories`.`product_id` in (886,367,421,1144,327,895,894,1189,326,918,891,1465))",
"cost_info": {
"read_cost": "92.00",
"eval_cost": "0.74",
"prefix_cost": "138.42",
"data_read_per_join": "59"
},
"used_columns": [
"product_id",
"category_id",
"link_type"
]
}
}
]
}
}
}
product_id | category_ids |
---|---|
326 | 353,390,382,360,380,361,349M,368,357,370,350,372,354,374,395,363,388,376,393,385,378,391,383,381,356,352,379,369,359,362,371,373,396,358,389,351,375,394,386,377,392,355,384 |
327 | 358,351,375,386,377,355,384,353,382,360,380,361,349M,357,370,350,372,354,374,363,376,385,378,383,381,356,352,379,369,359,362,371,373 |
367 | 397M,400 |
421 | 359,394,362,392,358,390,351,342,339,355,353,368,360,361,349,345,395,338,357,388,350,393,340,391,354,363,343,337M,341,356,352,344,396 |
886 | 447M |
891 | 447M |
894 | 447M |
895 | 447M |
918 | 400,397M |
1144 | 397M |
1189 | 397M |
1465 | 337,369,341,356,371,352,344,373,396,359,375,394,362,386,377,392,384,358,390,351,382,342,380,339,355,353,368,370,360,361M,372,349,345,374,395,338,357,388,350,376,393,340,385,378,391,347,354,383,363,381,343,379 |