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