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