{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "171.25"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "14.92"
},
"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": 14,
"filtered": "16.22",
"index_condition": "(`eshopuga_upgr_4122`.`cscart_products_categories`.`product_id` in (440,1966,1928,1973,1968,1963,327,1934,385,405,413,1970,1937,414,389,1972,426,1974,442,1936,326,441,322,1957))",
"cost_info": {
"read_cost": "92.00",
"eval_cost": "2.98",
"prefix_cost": "138.42",
"data_read_per_join": "238"
},
"used_columns": [
"product_id",
"category_id",
"link_type"
]
}
},
{
"table": {
"table_name": "product_position_source",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id",
"product_id"
],
"key_length": "6",
"ref": [
"const",
"eshopuga_upgr_4122.cscart_products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 14,
"filtered": "100.00",
"cost_info": {
"read_cost": "14.92",
"eval_cost": "2.98",
"prefix_cost": "156.33",
"data_read_per_join": "238"
},
"used_columns": [
"product_id",
"category_id",
"position"
]
}
}
]
}
}
}
product_id | category_ids | position |
---|---|---|
322 | 369,372,342,371,344,370,378,358,376,377,375,374,345,341,352,356,357,338,353,355,339,349M,373,351,350,354 | 0 |
326 | 355,379,349M,373,351,361,350,354,390,394,369,372,395,391,362,382,393,371,384,370,378,383,396,360,381,358,392,376,368,380,363,359,377,375,374,386,352,385,356,388,357,353,389 | 0 |
327 | 352,385,356,357,353,355,379,349M,373,351,361,350,354,369,372,362,382,371,384,370,378,383,360,381,358,376,380,363,359,377,375,374,386 | 0 |
385 | 363,340,359,377,375,339,374,388,337M,352,356,357,353,390,343,355,349,394,342,373,351,361,350,354,395,344,347,369,391,372,393,396,362,371,370,392,345,341,378,368,360,338,358,376 | 0 |
389 | 338,358,386,376,340,377,375,385,339,374,337M,352,379,356,357,353,343,355,349,342,373,351,350,354,344,347,369,372,382,384,383,371,381,370,345,341,378,380 | 0 |
405 | 360,371,370,345,341,378,363,359,388,338,358,376,340,377,375,339,374,337M,390,352,356,394,357,361,353,395,343,355,349,342,373,391,351,393,350,354,344,347,369,396,362,372,392,368 | 0 |
413 | 369,362,372,368,360,371,370,345,341,378,363,359,338,358,376,340,377,375,339,374,337M,352,356,357,361,353,343,355,349,342,373,351,350,354,344 | 0 |
414 | 342,373,351,350,354,344,369,362,372,368,360,371,370,345,341,378,363,359,338,358,376,340,377,375,339,374,337M,352,356,357,361,353,343,355,349 | 0 |
426 | 357,353,381,343,355,349,342,373,351,350,354,344,386,385,372,379,371,370,345,341,378,338,358,376,340,377,375,339,374,337M,382,384,352,356,383 | 0 |
440 | 396,361,392,373,369,362,388,368,360,372,390,363,359M,394,371,370,395,391,393,376,377,375,374 | 0 |
441 | 347,337M,382,384,352,356,380,383,357,361,353,381,343,355,349,342,351,350,354,344,369,362,368,360,372,345,341,363,359,371,338,358,370,340,339 | 0 |
442 | 371,370,376,377,375,374,382,384,380,383,361,381,386,373,385,369,379,362,378,368,360,372,363,359M | 0 |
1928 | 391,338,359,339,370,374,349,361M,350,381,390,369,379,362,345,378,395 | 0 |
1934 | 358,345,395,363,340,337,391,396,338,352,359,377,339,356,370,384,355,374,342,354,344,349,373,361M,350,381,394,390,369,379,362,360,372 | 0 |
1936 | 378,390,369,379,362,360,345,376,395,363,375,337,391,396,338,353,352,359,377,339,356,370,388,384,386,374,349,373,361M,350,381,341,394 | 0 |
1937 | 361M,350,381,393,341,372,394,347,371,358,378,390,340,369,379,392,362,360,357,382,345,376,395,363,343,375,380,337,391,396,351,338,353,352,359,355,377,339,356,342,385,370,388,354,384,344,386,374,349,368,373 | 0 |
1957 | 349,368,361M,381,340,369,379,362,360,363,337,338,352,359,377,339,370,331 | 0 |
1963 | 350,349,361M,381,378,340,369,379,362,360,363,337,338,388,352,359,377,339,370 | 0 |
1966 | 352,359,377,339,370,368,349,361M,381,340,369,379,362,360,363,337,338 | 0 |
1968 | 363,337,338,352,359,339,370,350,349,361M,381,340,369,379,362,360 | 0 |
1970 | 340,369,379,362,360,363,377,337,338,352,359,339,368,370,350,349,361M,381 | 0 |
1972 | 340,369,379,362,360,363,337,338,352,359,339,368,370,350,349,361M,381 | 0 |
1973 | 349,361M,381,340,377,369,379,362,360,363,337,338,352,359,339,368,370 | 0 |
1974 | 349,361M,381,340,369,379,362,360,363,337,338,350,352,359,339,368,370 | 0 |