{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "166.43"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "12.73"
},
"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": 12,
"filtered": "13.84",
"index_condition": "(`eshopuga_upgr_4122`.`cscart_products_categories`.`product_id` in (440,1966,1973,1963,327,1934,385,405,413,1970,1937,414,389,426,442,1936,326,322,1957))",
"cost_info": {
"read_cost": "92.00",
"eval_cost": "2.55",
"prefix_cost": "138.42",
"data_read_per_join": "203"
},
"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": 12,
"filtered": "100.00",
"cost_info": {
"read_cost": "12.73",
"eval_cost": "2.55",
"prefix_cost": "153.70",
"data_read_per_join": "203"
},
"used_columns": [
"product_id",
"category_id",
"position"
]
}
}
]
}
}
}
product_id | category_ids | position |
---|---|---|
322 | 350,372,371,342,351,349M,357,352,339,356,338,378,376,377,375,353,374,355,341,345,373,358,369,370,344,354 | 0 |
326 | 358,369,370,361,363,354,384,350,372,371,386,351,383,349M,381,385,382,388,394,357,359,352,389,395,356,379,380,396,362,393,390,368,378,376,377,375,391,353,374,355,392,360,373 | 0 |
327 | 355,360,373,358,369,370,361,363,354,384,350,372,371,386,351,383,349M,381,385,382,357,359,352,356,379,380,362,378,376,377,375,353,374 | 0 |
385 | 392,337M,378,376,377,375,353,344,374,355,342,360,373,347,358,369,370,361,363,354,350,372,339,371,388,394,351,395,340,338,349,357,396,359,393,352,390,368,341,343,356,345,391,362 | 0 |
389 | 341,343,356,345,337M,378,376,377,375,353,344,374,355,342,373,384,347,358,369,370,354,350,372,386,339,371,383,381,385,382,351,340,338,349,379,357,380,352 | 0 |
405 | 340,338,349,368,357,391,362,352,392,341,343,356,345,337M,378,376,377,375,353,344,374,360,355,361,363,342,373,347,358,369,370,388,394,354,350,372,339,371,395,396,359,393,351,390 | 0 |
413 | 359,351,340,338,349,368,357,362,352,341,343,356,345,337M,378,376,377,375,353,344,374,360,355,361,363,342,373,358,369,370,354,350,372,339,371 | 0 |
414 | 370,354,350,372,339,371,359,351,340,338,349,368,357,362,352,341,343,356,345,337M,378,376,377,375,353,344,374,360,355,361,363,342,373,358,369 | 0 |
426 | 379,342,373,358,370,354,350,372,339,371,351,340,338,349,357,352,384,341,343,356,345,386,337M,378,376,383,377,375,381,385,353,344,374,382,355 | 0 |
440 | 377,375,374,361,363,396,393,369,390,373,391,370,392,359M,372,371,368,362,388,394,360,376,395 | 0 |
442 | 381,385,382,360,380,376,377,375,374,379,361,363,369,373,370,359M,372,371,368,362,384,386,378,383 | 0 |
1934 | 344,394,355,395,381,342,360,396,358,390,377,374,379,361M,363,354,391,350,339,369,373,340,338,349,370,359,372,352,356,345,362,384,337 | 0 |
1936 | 345,362,353,388,384,386,337,378,394,376,395,375,381,360,396,390,377,374,379,361M,363,391,350,339,369,373,338,349,370,341,359,352,356 | 0 |
1937 | 359,352,356,345,385,362,353,344,382,388,380,384,355,386,393,337,378,394,342,358,376,395,375,381,392,360,354,396,351,390,377,374,379,361M,363,357,391,350,339,371,369,347,340,368,343,373,372,338,349,370,341 | 0 |
1957 | 338,349,370,359,352,362,337,381,360,377,379,361M,363,331,339,369,340,368 | 0 |
1963 | 361M,363,339,369,340,338,349,370,359,388,352,378,362,337,381,360,350,377,379 | 0 |
1966 | 360,377,368,379,361M,363,339,369,340,338,349,370,359,352,362,337,381 | 0 |
1970 | 350,381,360,377,368,379,361M,363,339,369,340,338,349,370,359,352,362,337 | 0 |
1973 | 337,381,360,377,368,379,361M,363,339,369,340,338,349,370,359,352,362 | 0 |