{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "170.81"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "14.72"
},
"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.00",
"index_condition": "(`eshopuga_upgr_4122`.`cscart_products_categories`.`product_id` in (421,1930,1931,1529,1465,1932,1962,1933,1935,428,406,390,1929,398,1927,435,419,324,440,431,1928,1934,2000,2001))",
"cost_info": {
"read_cost": "92.00",
"eval_cost": "2.94",
"prefix_cost": "138.42",
"data_read_per_join": "235"
},
"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.72",
"eval_cost": "2.94",
"prefix_cost": "156.09",
"data_read_per_join": "235"
},
"used_columns": [
"product_id",
"category_id",
"position"
]
}
}
]
}
}
}
product_id | category_ids | position |
---|---|---|
324 | 354,388,391,395,361,350,362,351,353,390,352,358,393,394,359,368,392,396,340,357,338M,363,355,349,360,356 | 0 |
390 | 363,344,355,349,360,356,347,354,388,391,395,341,337M,361,350,345,362,351,353,390,352,343,358,393,394,359,339,368,392,396,340,342,357,338 | 0 |
398 | 396,340,342,357,338,363,344,355,349,360,356,347,354,388,391,395,341,337M,361,350,345,362,351,353,390,352,343,358,393,394,359,339,368,392,389 | 0 |
406 | 394,359,339,368,392,396,340,342,357,338,363,344,355,349,360,356,347,354,388,391,395,341,337M,361,350,345,362,351,353,390,352,343,358,393 | 0 |
419 | 389,393,394,359,339,368,392,396,340,342,357,338,363,344,355,349,360,356,354,388,391,395,341,337M,361,350,345,362,351,353,390,352,343,358 | 0 |
421 | 362,351,353,390,352,343,358,393,394,359,339,368,392,396,340,342,357,338,363,344,355,349,360,356,354,388,391,395,341,337M,361,350,345 | 0 |
428 | 341,337M,361,350,345,362,351,353,390,352,343,358,393,394,359,339,347,368,392,396,340,342,357,338,363,344,355,349,360,356,354,388,391,395 | 0 |
431 | 349,360,356,354,388,391,395,341,337M,361,350,345,362,351,353,390,352,343,358,393,394,359,339,368,392,396,342,357,338,363,344,355 | 0 |
435 | 363,349M,360,382,388,391,395,381,361,386,362,351,379,383,380,390,352,385,393,394,359,384,368,392,396 | 0 |
440 | 377,370,368,392,396,374,363,369,360,372,376,371,388,391,395,375,361,373,362,390,393,394,359M | 0 |
1465 | 342,357,338,393,394,344,359,355,356,377,370,368,392,378,354,396,374,341,349,337,382,350,345,363,369,360,372,381,353,386,376,371,388,343,358,391,395,351,375,379,383,361M,373,380,352,347,362,340,339,390,385,384 | 0 |
1529 | 339,390,385,384,342,357,338,393,394,344,359,355,356,377,370,368,392,378,354,396,374,341,349M,337,350,345,363,369,360,372,381,353,386,376,371,388,343,358,391,395,351,375,379,361,373,380,352,347,362,340 | 0 |
1927 | 361M,362,340,339,390,338,359,377,370,378,374,349,337,350,345,363,369,353,358,391,351,379 | 0 |
1928 | 391,379,361M,362,339,390,338,359,370,378,374,349,381,350,345,369,395 | 0 |
1929 | 350,345,373,352,369,391,379,339,390,377,338,359,337,363M,388,349,381 | 0 |
1930 | 353,363,388,395,349,381,351,350,345,352,369,340,361M,391,362,355,379,356,354,339,341,390,377,338,376,359,337,375 | 0 |
1931 | 338,380,376,359,337,353,363,388,385,395,349,381,350,345,342,369,340,361M,391,396,362,379,339,360,372,390,371,374 | 0 |
1932 | 338,359,384,352,388,349,381,394,350,345,369,391,362M,379,378,339,377,390 | 0 |
1933 | 374,339,390,376,337,338,363,359,352,388,349,381,394,340,355,361M,350,345,369,396,341,370,386,391,362,379,360,372 | 0 |
1934 | 391,362,358,379,360,377,372,373,374,339,390,395,344,337,384,338,363,342,359,356,352,349,354,381,394,340,355,361M,350,345,369,396,370 | 0 |
1935 | 369,380,391,362,379,360,372,376,374,393,339,390,395,344,337,384,338,363,342,388,359,352,349,381,394,340,361M,350,345 | 0 |
1962 | 349,381,340,361M,350,370,369,377,362,379,360,339,390,337,338,363,388,359,352 | 0 |
2000 | 396M,349,369,391,362,390,338,363 | 0 |
2001 | 338,363,396M,349,369,391,362,390 | 0 |