{
"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,363,347,337M,373,362,370,361,374,385,354,359,358,339,384,360,349,376,371,375,344,372,381,379,345,340,357,338,382,343,380,386,342,352,350,341,353,351,356,378,355 | 0 |
421 | 350,341,353,351,356,393,355,363,337M,362,361,354,391,359,388,358,339,360,396,349,392,395,394,344,368,345,340,357,338,343,342,390,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,361M,343,378,342,390,352,359,350,341,353,351,356,383,393,347,373,355,370,374,385,360,337,354,368,391,384,388,376,358,339,371,375,369,372,381,396,349,379,392,395,394,344,377,382,380,386,345,340,357 | 0 |
1529 | 394,344,377,380,386,345,340,357,363,362,338,361,343,378,342,390,352,359,350,341,353,351,356,393,347,373,355,370,374,385,360,337,354,368,391,384,388,376,358,339,371,375,369,372,381,396,349M,379,392,395 | 0 |
1930 | 381,349,379,395,377,345,340,363,362,338,361M,390,352,359,350,341,353,351,356,355,337,354,391,388,376,339,375,369 | 0 |
1931 | 372,388,396,376,339,369,381,349,379,380,395,342,345,340,363,362,338,361M,390,359,374,385,350,360,353,337,371,391 | 0 |
1932 | 391,394,388,339,369,377,381,349,379,378,352,345,362M,338,390,359,350,384 | 0 |
1933 | 337,372,396,376,386,391,394,388,339,369,381,349,379,370,340,363,341,361M,355,352,345,374,360,362,338,390,359,350 | 0 |
1935 | 390,359,350,344,337,372,376,380,395,391,394,388,393,339,342,369,381,349,379,340,363,361M,352,345,374,360,362,338,384 | 0 |
1958 | 361M,352,360,362,338,359,337,377,388,339,370,369,368,381,349,379,340,363 | 0 |
1959 | 340,363,361M,352,350,360,362,338,359,337,377,339,370,369,368,381,349,379 | 0 |
1960 | 339,370,369,368,381,349,379,340,363,361M,352,360,362,338,359,378,337,377 | 0 |
1961 | 339,370,369,368,381,349,379,340,363,350,361M,360,362,338,359,378,337,377 | 0 |
1962 | 377,390,339,370,369,381,349,379,352,340,363,350,361M,360,362,338,388,359,337 | 0 |
1971 | 359,337,377,368,339,370,369,381,349,379,352,340,363,350,361M,360,362,338 | 0 |