{
"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,384,361,363,354,350,372,371,386,383,351,381,385,349M,382,388,394,357,359,389,395,352,379,356,380,396,393,362,390,368,378,376,391,377,375,353,374,392,355,360,373 | 0 |
327 | 355,360,373,358,369,370,384,361,363,354,350,372,371,386,383,351,381,385,349M,382,357,359,352,379,356,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,371,339,388,394,395,351,340,338,349,396,357,393,359,390,352,368,341,343,356,391,345,362 | 0 |
389 | 341,343,356,345,337M,378,376,377,375,353,344,374,355,384,342,373,347,358,369,370,354,386,350,372,371,383,339,381,385,382,351,340,338,349,379,380,357,352 | 0 |
405 | 368,340,338,349,391,357,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,371,395,339,396,393,359,390,351 | 0 |
413 | 359,351,368,340,338,349,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,371,339 | 0 |
414 | 370,354,350,372,371,339,359,351,368,340,338,349,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,371,339,351,340,338,349,357,384,352,341,343,356,345,386,383,337M,378,376,381,385,377,375,382,353,344,374,355 | 0 |
440 | 377,375,374,396,361,363,393,369,390,391,373,370,392,359M,372,371,368,362,388,394,360,395,376 | 0 |
442 | 381,385,382,380,360,376,377,375,379,374,361,363,369,373,370,359M,372,371,368,362,384,386,383,378 | 0 |
1934 | 394,344,355,395,381,396,342,360,358,390,377,379,374,391,361M,363,354,350,369,339,373,370,340,338,349,359,372,352,356,345,362,384,337 | 0 |
1936 | 345,388,362,353,384,386,337,378,394,395,376,381,375,396,360,390,377,379,374,391,361M,363,350,369,339,373,370,338,349,341,359,352,356 | 0 |
1937 | 359,352,356,385,345,382,388,362,353,344,380,384,386,393,355,337,378,394,342,358,395,376,381,392,375,396,360,354,390,351,377,379,374,391,361M,363,357,350,371,369,339,368,347,340,343,373,372,370,338,349,341 | 0 |
1957 | 370,338,349,359,352,362,337,381,360,377,379,361M,363,331,369,339,368,340 | 0 |
1963 | 361M,363,369,339,340,370,338,349,388,359,352,378,362,337,381,360,350,377,379 | 0 |
1966 | 360,368,377,379,361M,363,369,339,340,370,338,349,359,352,362,337,381 | 0 |
1970 | 350,381,360,368,377,379,361M,363,369,339,340,370,338,349,359,352,362,337 | 0 |
1973 | 337,381,360,368,377,379,361M,363,369,339,340,370,338,349,359,352,362 | 0 |