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