{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "168.38"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "13.62"
},
"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.80",
"index_condition": "(`eshopuga_upgr_4122`.`cscart_products_categories`.`product_id` in (1969,1929,398,1964,434,383,1927,435,419,403,324,1965,440,1966,431,1973,1968,1963,327,1934,2000,385,405,413))",
"cost_info": {
"read_cost": "92.00",
"eval_cost": "2.72",
"prefix_cost": "138.42",
"data_read_per_join": "217"
},
"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.62",
"eval_cost": "2.72",
"prefix_cost": "154.76",
"data_read_per_join": "217"
},
"used_columns": [
"product_id",
"category_id",
"position"
]
}
}
]
}
}
}
product_id | category_ids | position |
---|---|---|
324 | 338M,351,395,361,393,363,355,358,354,394,362,350,352,360,357,396,340,392,368,391,353,359,349,356,388,390 | 0 |
327 | 371,353,359,349M,356,378,351,361,369,363,386,377,355,358,374,379,383,375,380,376,354,373,385,362,350,352,360,357,372,384,370,381,382 | 0 |
383 | 372,384,370,381,337M,338,371,353,359,349,356,378,341,343,351,361,363,344,386,377,355,358,374,342,375,347,376,354,373,340,385,362,339,350,352,360,368,345,357 | 0 |
385 | 340,391,362,339,350,352,360,368,388,345,357,390,372,370,395,337M,393,338,371,353,359,349,356,378,369,341,343,351,361,363,344,377,355,358,394,374,342,375,396,347,376,392,354,373 | 0 |
398 | 347,392,354,340,391,362,339,350,352,360,368,388,345,357,390,395,337M,393,338,353,359,349,356,341,389,343,351,361,363,344,355,358,394,342,396 | 0 |
403 | 394,392,362,360,368,388,395,393,359M,361,363 | 0 |
405 | 355,358,376,361,342,363,373,396,347,394,354,340,391,339,392,350,372,352,370,345,357,390,371,362,360,378,368,388,337M,369,338,353,349,356,395,393,341,377,343,359,351,374,344,375 | 0 |
413 | 343,359,351,374,344,375,355,358,376,361,342,363,373,354,340,339,350,372,352,370,345,357,371,362,360,378,368,337M,369,338,353,349,356,341,377 | 0 |
419 | 353,349,356,341,343,359,351,344,396,355,358,394,361,342,363,391,392,354,390,340,339,350,352,388,345,357,362,389,360,368,395,337M,393,338 | 0 |
431 | 360,368,395,337M,393,338,353,349,356,341,343,359,351,344,396,355,358,394,361,342,363,391,392,354,390,339,350,352,388,345,357,362 | 0 |
434 | 350,385,352,345,357,362,382,360,368,337M,384,338,381,353,347,349,356,341,343,359,351,344,379,383,355,358,380,386,361,342,363,340,354,339 | 0 |
435 | 388,385,352,395,393,362,382,360,368,384,381,349M,396,359,394,351,379,383,380,386,391,392,361,363,390 | 0 |
440 | 361,363,390,377,374,388,375,376,395,393,362,373,360,368,372,370,396,359M,371,394,369,391,392 | 0 |
1927 | 369,391,339,361M,350,363,345,390,377,374,337,338,353,362,349,358,351,378,370,379,340,359 | 0 |
1929 | 379,359,369,391,339,350,363M,352,388,345,390,377,337,338,381,373,349 | 0 |
1934 | 370,354,340,379,359,361M,369,391,339,350,363,352,356,374,395,345,384,390,377,360,337,344,338,381,362,373,355,342,372,396,358,394,349 | 0 |
1963 | 378,349,370,340,379,359,361M,388,369,339,350,363,352,377,360,337,338,381,362 | 0 |
1964 | 337,338,381,362,378,349,370,340,379,359,361M,368,369,339,363,377,360 | 0 |
1965 | 377,360,337,338,381,362,349,370,340,379,359,361M,352,368,369,339,363 | 0 |
1966 | 369,339,363,377,360,337,338,381,362,349,370,340,379,359,361M,352,368 | 0 |
1968 | 379,359,361M,352,369,339,363,360,337,338,381,362,349,350,370,340 | 0 |
1969 | 340,368,379,359,361M,352,369,339,363,360,337,338,381,362,349,350,370 | 0 |
1973 | 349,370,340,368,379,359,377,361M,352,369,339,363,360,337,338,381,362 | 0 |
2000 | 362,396M,349,391,369,390,363,338 | 0 |