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