{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "167.03"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "13.00"
},
"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": 13,
"filtered": "14.14",
"index_condition": "(`eshopuga_upgr_4122`.`cscart_products_categories`.`product_id` in (1964,1927,1965,440,1966,1928,1973,1968,1963,327,1934,2000,2001,385,405,413,1970,1937,414,389,1972,1974,442,1936))",
"cost_info": {
"read_cost": "92.00",
"eval_cost": "2.60",
"prefix_cost": "138.42",
"data_read_per_join": "208"
},
"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": 13,
"filtered": "100.00",
"cost_info": {
"read_cost": "13.00",
"eval_cost": "2.60",
"prefix_cost": "154.03",
"data_read_per_join": "208"
},
"used_columns": [
"product_id",
"category_id",
"position"
]
}
}
]
}
}
}
product_id | category_ids | position |
---|---|---|
327 | 363,351,354,358,361,370,372,380,382,355,376,385,384,362,353,349M,374,378,373,350,377,379,356,369,371,359,381,360,352,375,383,386,357 | 0 |
385 | 395,352,375,394,396,357,363,351,341,354,358,391,345,342,361,370,372,368,338,393,344,355,376,340,339,362,353,349,374,337M,378,373,350,377,390,356,369,388,392,347,343,371,359,360 | 0 |
389 | 343,371,383,386,352,375,357,351,341,380,354,358,345,342,370,382,372,385,338,384,344,355,376,340,379,339,353,349,374,337M,378,373,350,377,356,369,381,347 | 0 |
405 | 356,369,359,347,360,395,343,371,394,396,363,352,375,391,361,357,351,341,368,354,358,345,342,393,370,372,338,362,344,355,376,340,390,339,388,353,349,374,337M,378,373,392,350,377 | 0 |
413 | 339,353,349,374,337M,378,373,350,377,356,369,359,360,343,371,363,352,375,361,357,351,341,368,354,358,345,342,370,372,338,362,344,355,376,340 | 0 |
414 | 362,344,355,376,340,339,353,349,374,337M,378,373,350,377,356,369,359,360,343,371,363,352,375,361,357,351,341,368,354,358,345,342,370,372,338 | 0 |
440 | 390,388,370,372,392,362,376,395,394,374,396,373,377,369,391,359M,360,371,393,363,375,361,368 | 0 |
442 | 361,368,381,370,383,372,386,362,378,376,380,374,373,377,382,385,369,384,359M,360,371,379,363,375 | 0 |
1927 | 379,358,345,363,338,390,361M,340,339,353,349,370,337,350,362,378,374,391,377,369,359,351 | 0 |
1928 | 369,359,379,345,381,338,390,361M,395,339,349,370,350,362,378,374,391 | 0 |
1934 | 354,374,391,342,369,358,359,344,363,355,379,345,372,381,340,338,390,356,394,361M,396,337,395,339,349,370,373,350,352,362,384,360,377 | 0 |
1936 | 384,360,377,375,374,391,388,369,359,363,386,379,345,353,376,381,338,390,356,394,361M,396,337,395,339,349,370,378,373,350,352,341,362 | 0 |
1937 | 371,349,373,370,378,350,352,351,341,362,354,384,342,360,377,368,392,347,375,358,374,391,388,344,355,369,359,363,372,386,340,379,380,345,343,353,376,381,338,382,390,385,356,394,361M,396,337,393,357,395,339 | 0 |
1963 | 361M,337,339,349,370,378,350,352,362,360,377,388,369,359,363,340,379,381,338 | 0 |
1964 | 381,338,361M,337,339,349,370,378,368,362,360,377,369,359,363,340,379 | 0 |
1965 | 363,340,379,381,338,361M,337,352,339,349,370,368,362,360,377,369,359 | 0 |
1966 | 369,359,363,340,379,381,338,361M,337,352,339,349,370,368,362,360,377 | 0 |
1968 | 360,369,359,363,350,340,379,381,338,361M,337,352,339,349,370,362 | 0 |
1970 | 377,362,360,369,359,363,350,340,379,381,338,361M,337,352,339,368,349,370 | 0 |
1972 | 352,339,368,349,370,362,360,369,359,363,350,340,379,381,338,361M,337 | 0 |
1973 | 381,338,361M,337,377,352,339,368,349,370,362,360,369,359,363,340,379 | 0 |
1974 | 340,379,381,338,361M,337,352,339,368,349,370,362,360,350,369,359,363 | 0 |
2000 | 369,396M,363,338,391,349,362,390 | 0 |
2001 | 390,369,396M,363,338,391,349,362 | 0 |