{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "169.77"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "14.25"
},
"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": "15.49",
"index_condition": "(`eshopuga_upgr_4122`.`cscart_products_categories`.`product_id` in (432,1928,1973,429,1968,384,1963,1934,395,420,385,405,410,413,1970,417,1937,414,425,407,389,402,1972,388))",
"cost_info": {
"read_cost": "92.00",
"eval_cost": "2.85",
"prefix_cost": "138.42",
"data_read_per_join": "227"
},
"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.25",
"eval_cost": "2.85",
"prefix_cost": "155.52",
"data_read_per_join": "227"
},
"used_columns": [
"product_id",
"category_id",
"position"
]
}
}
]
}
}
}
product_id | category_ids | position |
---|---|---|
384 | 353,339,342,354,349,358,344,350,341,347,345,357,337M,352,356,340,338,351,343,355 | 0 |
385 | 378,351,372,388,370,391,343,355,369,371,368,361,392,353,339,342,377,354,349,358,344,350,362,341,360,347,395,345,357,374,394,337M,375,396,359,376,363,352,356,340,373,393,390,338 | 0 |
388 | 384,356,340,338,351,381,343,355,368,361,353,339,342,386,354,349,358,344,383,380,350,362,341,360,385,347,345,357,379,337M,382,359,363,352 | 0 |
389 | 357,379,337M,382,373,352,378,384,356,372,370,340,369,371,338,351,381,343,355,377,353,339,342,386,354,349,358,344,383,380,350,341,374,375,385,347,376,345 | 0 |
395 | 347,345,357,337M,352,356,340,338,351,343,355,353,339,342,354,349,358,344,350,341 | 0 |
402 | 350,359,393,390,363,341,388,391,347,345,357,392,337M,368,361,352,356,340,338,351,343,355,362,353,339,342,395,394,360,354,396,349,358,344 | 0 |
405 | 374,394,360,354,375,396,349,358,376,344,350,359,373,393,390,363,341,378,372,388,370,391,369,347,371,345,357,392,337M,377,368,361,352,356,340,338,351,343,355,362,353,339,342,395 | 0 |
407 | 343,355,385,362,353,339,342,395,379,394,360,354,382,396,349,358,344,384,350,359,393,390,363,341,381,388,391,347,345,357,392,337M,386,368,361,352,356,383,340,380,338,351 | 0 |
410 | 340,338,351,343,355,353,339,342,354,349,358,344,350,341,345,357,337M,352,356 | 0 |
413 | 352,356,374,340,375,338,362,351,376,343,355,360,373,353,339,342,378,372,354,370,359,369,349,358,371,363,344,350,377,341,368,361,345,357,337M | 0 |
414 | 368,361,345,357,337M,352,356,374,340,375,338,362,351,376,343,355,360,373,353,339,342,378,372,354,370,359,369,349,358,371,363,344,350,377,341 | 0 |
417 | 341,345,357,337M,352,356,340,338,351,343,355,353,339,342,354,349,358,344,350 | 0 |
420 | 349,358,344,350,341,345,357,337M,352,356,340,338,351,343,355,353,339,342,354 | 0 |
425 | 353,339,342,354,349,358,344,350,341,345,357,337M,352,347,356,340,338,351,343,355 | 0 |
429 | 338,351,343,355,353,339,342,354,349,358,344,350,341,345,357,337M,352,356,340 | 0 |
432 | 352,356,340,338,351,343,355,353,339,342,354,349,358,344,350,341,345,357,347,337M | 0 |
1928 | 345,361M,395,379,338,374,339,362,390,381,349,391,350,378,370,359,369 | 0 |
1934 | 370,359,377,369,337,352,345,356,340,394,396,361M,355,395,379,384,338,342,354,374,339,360,358,344,373,362,390,372,381,349,391,363,350 | 0 |
1937 | 391,357,380,347,363,350,370,359,377,369,368,337,385,352,345,351,356,382,340,343,394,353,375,396,361M,393,355,376,395,379,384,338,388,342,354,374,392,339,360,358,344,341,373,386,362,371,390,378,372,381,349 | 0 |
1963 | 362,378,381,349,363,350,370,359,377,369,337,352,340,361M,379,338,388,339,360 | 0 |
1968 | 339,360,362,381,349,363,350,370,359,369,337,352,340,361M,379,338 | 0 |
1970 | 361M,379,338,339,360,362,368,381,349,377,363,350,370,359,369,337,352,340 | 0 |
1972 | 340,361M,379,338,339,360,362,368,381,349,363,350,370,359,369,337,352 | 0 |
1973 | 337,352,340,361M,379,338,339,360,377,362,368,381,349,363,370,359,369 | 0 |