{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "177.97"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "17.98"
},
"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": 17,
"filtered": "19.54",
"index_condition": "(`eshopuga_upgr_4122`.`cscart_products_categories`.`product_id` in (421,1931,1529,1465,1933,428,406,390,398,435,419,324,440,431,1934,2000,2001,385,405,1937,407,402,1936,416))",
"cost_info": {
"read_cost": "92.00",
"eval_cost": "3.60",
"prefix_cost": "138.42",
"data_read_per_join": "287"
},
"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": 17,
"filtered": "100.00",
"cost_info": {
"read_cost": "17.98",
"eval_cost": "3.60",
"prefix_cost": "160.00",
"data_read_per_join": "287"
},
"used_columns": [
"product_id",
"category_id",
"position"
]
}
}
]
}
}
}
product_id | category_ids | position |
---|---|---|
324 | 368,350,358,396,353,338M,391,361,351,354,363,390,360,349,394,357,362,393,356,388,395,359,392,352,340,355 | 0 |
385 | 359,392,352,343,340,355,369,368,350,358,372,396,353,338,391,361,351,375,374,342,354,363,344,337M,390,360,371,349,377,394,357,378,370,362,347,341,345,393,356,376,388,395,373,339 | 0 |
390 | 393,356,388,395,339,359,392,352,343,340,355,368,350,358,396,353,338,391,361,351,342,354,363,344,337M,390,360,349,394,357,362,347,341,345 | 0 |
398 | 357,362,389,347,341,345,393,356,388,395,339,359,392,352,343,340,355,368,350,358,396,353,338,391,361,351,342,354,363,344,337M,390,360,349,394 | 0 |
402 | 390,360,349,394,357,362,347,341,345,393,356,388,395,339,359,392,352,343,340,355,368,350,358,396,353,338,391,361,351,342,354,363,344,337M | 0 |
405 | 342,376,354,363,344,373,337M,390,360,349,369,394,357,362,372,347,341,345,375,393,356,374,388,395,339,359,392,352,343,340,355,371,368,350,377,358,396,353,338,378,370,391,361,351 | 0 |
406 | 358,396,353,338,391,361,351,342,354,363,344,337M,390,360,349,394,357,362,347,341,345,393,356,388,395,339,359,392,352,343,340,355,368,350 | 0 |
407 | 343,355,340,368,350,358,381,396,353,338,383,380,391,361,351,342,354,363,344,337M,390,360,382,349,394,357,384,362,386,347,341,345,385,393,379,356,388,395,339,359,392,352 | 0 |
416 | 356,388,395,339,359,392,352,343,355,340,368,350,358,396,353,338,391,361,351,342,354,363,344,337M,390,360,349,394,357,362,341,345,393 | 0 |
419 | 341,345,393,356,388,395,389,339,359,392,352,343,355,340,368,350,358,396,353,338,391,361,351,342,354,363,344,337M,390,360,349,394,357,362 | 0 |
421 | 349,394,357,362,341,345,393,356,388,395,339,359,392,352,343,355,340,368,350,358,396,353,338,391,361,351,342,354,363,344,337M,390,360 | 0 |
428 | 354,363,344,337M,390,360,349,394,357,362,341,345,393,356,388,395,339,359,392,352,343,355,340,368,350,358,396,353,338,391,361,351,347,342 | 0 |
431 | 391,361,351,342,354,363,344,337M,390,360,349,394,357,362,341,345,393,356,388,395,339,359,392,352,343,355,368,350,358,396,353,338 | 0 |
435 | 368,396,391,361,351,381,383,363,380,390,360,349M,394,362,382,393,384,388,395,386,359,385,392,352,379 | 0 |
440 | 370,359M,392,368,376,396,373,391,361,369,363,372,390,360,375,394,374,362,393,371,377,388,395 | 0 |
1465 | 386,347,378,393,350,385,352,358,371,353,338,377,379,388,395,370,359,392,342,351,354,368,344,376,337,396,373,381,391,361M,383,380,357,369,341,363,345,349,372,390,360,356,375,340,394,339,374,382,362,343,355,384 | 0 |
1529 | 394,339,374,362,343,355,384,386,347,378,393,350,385,352,358,371,353,338,377,379,388,395,370,359,392,342,351,354,368,344,376,337,396,373,381,391,361,380,357,369,341,363,345,349M,372,390,360,356,375,340 | 0 |
1931 | 372,390,360,340,339,374,362,350,385,371,353,338,379,388,395,359,342,376,337,396,381,391,361M,380,369,363,345,349 | 0 |
1933 | 369,363,345,349,372,394,390,360,355,340,386,339,374,362,352,370,350,338,379,388,359,376,337,396,381,391,361M,341 | 0 |
1934 | 337,396,356,381,391,361M,369,384,363,345,349,372,394,390,360,358,355,377,340,339,374,362,352,395,354,370,350,344,338,373,379,342,359 | 0 |
1936 | 376,375,341,337,396,356,381,391,361M,378,369,384,363,345,349,386,394,390,360,353,377,339,374,362,352,388,395,370,350,338,373,379,359 | 0 |
1937 | 380,382,338,373,379,359,376,375,341,343,347,337,393,396,356,381,391,361M,372,378,369,385,392,358,371,355,384,363,345,340,349,386,394,351,368,390,360,353,377,339,354,374,344,362,352,357,388,395,342,370,350 | 0 |
2000 | 362,338,396M,391,369,363,349,390 | 0 |
2001 | 362,338,396M,391,369,363,349,390 | 0 |