{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "163.86"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "11.56"
},
"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": 11,
"filtered": "12.57",
"index_condition": "(`eshopuga_upgr_4122`.`cscart_products_categories`.`product_id` in (421,427,408,1971,382,418,1959,1930,400,1960,321,424,1961,1931,381,1529,401,1465,1932,1962))",
"cost_info": {
"read_cost": "92.00",
"eval_cost": "2.31",
"prefix_cost": "138.42",
"data_read_per_join": "185"
},
"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": 11,
"filtered": "100.00",
"cost_info": {
"read_cost": "11.56",
"eval_cost": "2.31",
"prefix_cost": "152.30",
"data_read_per_join": "185"
},
"used_columns": [
"product_id",
"category_id",
"position"
]
}
}
]
}
}
}
product_id | category_ids | position |
---|---|---|
321 | 349M,359,362 | 0 |
381 | 362,347,371,361,360,356,378,375,344,370,350,384,385,343,374,379,349,355,358,337M,386,338,383,381,380,352,342,373,354,382,353,341,376,372,345,359,363,357,351,340,339 | 0 |
382 | 357,351,340,339,369,347,371,356,378,375,344,370,350,384,385,343,374,379,349,355,358,337M,386,338,383,381,377,352,342,373,354,382,353,341,376,372,345 | 0 |
400 | 354,353,341,345,357,351,340,339,347,356,344,350,343,349,355,358,337M,338,352,342 | 0 |
401 | 352,342,341,345,351,340,339,344,343,349,358,337M,338 | 0 |
408 | 343,382,349,358,376,372,337M,338,354,353,352,342,369,371,357,341,345,347,378,375,351,340,370,339,384,356,385,374,379,350,380,386,383,381,344,377,355,373 | 0 |
418 | 363,344,377,355,373,343,349,358,376,372,337M,338,354,353,352,342,369,371,357,341,345,378,375,351,340,370,339,356,374,350 | 0 |
421 | 359,393,350,395,362,363,344,355,361,360,368,343,349,358,337M,388,338,394,354,390,353,392,352,342,391,357,341,345,351,340,396,339,356 | 0 |
424 | 351,340,339,356,350,344,355,343,349,358,337M,338,347,354,353,352,342,357,341,345 | 0 |
427 | 341,381,374,345,351,340,377,382,339,356,373,350,376,372,344,355,369,371,343,349,358,337M,338,384,347,378,375,354,353,385,352,342,370,379,380,386,357,383 | 0 |
1465 | 353,385,352,342,370,379,396,380,386,357,383,341,359,381,393,374,345,395,362,363,351,340,377,382,339,356,361M,360,373,368,350,376,372,388,394,344,390,355,392,369,391,371,343,349,358,337,338,384,347,378,375,354 | 0 |
1529 | 349M,358,337,338,384,347,378,375,354,353,385,352,342,370,379,396,380,386,357,341,359,381,393,374,345,395,362,363,351,340,377,339,356,361,360,373,368,350,376,372,388,394,344,390,355,392,369,391,371,343 | 0 |
1930 | 355,369,391,349,337,338,375,354,353,352,379,341,359,381,345,395,362,363,351,340,377,339,356,361M,350,376,388,390 | 0 |
1931 | 350,376,388,371,390,369,391,349,385,342,337,396,338,380,353,374,379,359,381,345,395,360,362,363,340,339,372,361M | 0 |
1932 | 339,350,388,384,378,390,369,391,349,352,338,379,359,381,377,345,362M,394 | 0 |
1959 | 361M,362,339,350,370,337,369,349,352,338,368,379,360,359,381,363,340,377 | 0 |
1960 | 360,359,381,363,340,377,361M,362,339,378,370,337,369,349,352,338,368,379 | 0 |
1961 | 338,368,379,360,359,381,363,340,377,361M,362,350,339,378,370,337,369,349 | 0 |
1962 | 369,349,338,379,388,360,359,381,363,340,377,390,361M,362,350,339,370,352,337 | 0 |
1971 | 352,337,369,349,368,338,379,360,359,381,363,340,377,361M,362,350,339,370 | 0 |