{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "164.13"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "11.68"
},
"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.70",
"index_condition": "(`eshopuga_upgr_4122`.`cscart_products_categories`.`product_id` in (1935,1958,428,415,391,406,329,439,390,1969,393,394,1929,396,397,398,399,422,1964,434))",
"cost_info": {
"read_cost": "92.00",
"eval_cost": "2.34",
"prefix_cost": "138.42",
"data_read_per_join": "186"
},
"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.68",
"eval_cost": "2.34",
"prefix_cost": "152.44",
"data_read_per_join": "186"
},
"used_columns": [
"product_id",
"category_id",
"position"
]
}
}
]
}
}
}
product_id | category_ids | position |
---|---|---|
329 | 356,375,339,376,351,342,357,350,354,352,370,358,371,338,369,355,372,349M,373,374,377,378,353 | 0 |
390 | 360,393,361,353,340,356,339,368,363,351,342,388,357,396,392,350,345,354,352,391,390,359,395,344,358,362,337M,338,355,343,394,349,347,341 | 0 |
391 | 343,349,347,341,353,340,356,339,351,342,357,350,345,354,352,344,358,337M,338,355 | 0 |
393 | 358,380,378,382,337M,385,338,355,343,375,349,376,347,341,384,353,340,356,339,370,351,379,342,381,357,383,386,371,350,345,354,369,352,372,373,374,377,344 | 0 |
394 | 373,374,377,344,358,380,378,382,337M,385,338,355,343,375,349,376,347,341,384,353,340,356,339,370,351,379,342,381,357,383,386,371,350,345,354,369,352,372 | 0 |
396 | 371,350,345,354,369,352,372,373,374,377,344,358,378,337M,338,355,343,375,349,376,347,341,353,340,356,339,370,351,342,357 | 0 |
397 | 351,342,357,350,345,354,352,344,358,337M,338,355,343,349,347,341,353,340,356,339 | 0 |
398 | 394,353,340,356,339,360,351,393,342,357,361,368,350,345,354,389,363,352,388,396,392,344,358,391,337M,338,390,359,355,343,395,349,362,347,341 | 0 |
399 | 347,341,353,340,356,339,351,342,357,350,345,354,352,344,358,337M,338,355,343,349 | 0 |
406 | 337M,362,338,355,343,349,394,347,341,360,393,353,340,356,339,361,368,351,342,363,357,388,350,345,354,396,352,392,391,390,359,344,358,395 | 0 |
415 | 344,358,337M,338,355,343,349,341,353,340,356,339,351,342,357,350,345,354,352 | 0 |
422 | 350,345,354,352,344,358,337M,338,355,343,349,341,353,340,356,339,351,342,357 | 0 |
428 | 342,390,359,357,395,362,350,345,354,352,394,347,344,358,337M,338,360,355,393,343,349,361,368,341,363,388,353,340,356,396,339,392,391,351 | 0 |
434 | 386,353,340,356,339,351,342,359,357,380,362,350,345,354,382,352,385,347,344,358,384,337M,338,360,355,343,349,361,368,341,363,379,381,383 | 0 |
439 | 370,363,379,381,383,386,353,340,339,371,369,372,351,342,373,359,357,374,377,362,350,345,354,378,382,352,385,375,376,344,358,384,337M,338,360,355,343,349,361,368,341 | 0 |
1929 | 349,391,390,363M,379,381,339,369,373,359,377,350,345,352,337,388,338 | 0 |
1935 | 361M,337,388,338,349,395,391,340,390,363,379,381,372,342,380,394,339,374,369,362,359,393,350,345,352,376,344,384,360 | 0 |
1958 | 360,368,370,361M,337,388,338,349,340,363,379,381,339,369,377,362,359,352 | 0 |
1964 | 359,360,368,370,361M,337,338,349,340,378,363,379,381,339,369,377,362 | 0 |
1969 | 369,362,352,359,360,368,370,361M,337,338,349,340,363,379,381,350,339 | 0 |