{
"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 | 339,356,375,376,351,342,357,350,352,354,370,358,371,338,369,355,372,349M,373,374,377,378,353 | 0 |
390 | 360,393,361,353,340,339,356,368,363,351,342,388,357,396,350,345,392,352,354,391,390,359,395,344,362,358,337M,338,355,343,394,349,347,341 | 0 |
391 | 343,349,347,341,353,340,339,356,351,342,357,350,345,352,354,344,358,337M,338,355 | 0 |
393 | 358,380,378,382,337M,385,338,355,343,375,349,376,347,341,384,353,340,339,356,370,351,342,379,381,357,383,386,350,345,371,352,354,369,372,373,374,344,377 | 0 |
394 | 373,374,344,377,358,380,378,382,337M,385,338,355,343,375,349,376,347,341,384,353,340,339,356,370,351,342,379,381,357,383,386,350,345,371,352,354,369,372 | 0 |
396 | 350,345,371,352,354,369,372,373,374,344,377,358,378,337M,338,355,343,375,349,376,347,341,353,340,339,356,370,351,342,357 | 0 |
397 | 351,342,357,350,345,352,354,344,358,337M,338,355,343,349,347,341,353,340,339,356 | 0 |
398 | 394,353,340,339,356,351,360,342,393,361,357,368,350,345,363,352,354,389,388,396,344,392,358,391,337M,338,390,359,355,343,395,349,362,347,341 | 0 |
399 | 347,341,353,340,339,356,351,342,357,350,345,352,354,344,358,337M,338,355,343,349 | 0 |
406 | 362,337M,338,355,343,349,394,347,341,360,353,340,393,339,356,361,351,368,342,363,357,388,350,345,352,354,396,392,391,390,344,359,358,395 | 0 |
415 | 344,358,337M,338,355,343,349,341,353,340,339,356,351,342,357,350,345,352,354 | 0 |
422 | 350,345,352,354,344,358,337M,338,355,343,349,341,353,340,339,356,351,342,357 | 0 |
428 | 342,390,359,357,395,362,350,345,352,354,394,347,344,358,337M,338,360,355,393,343,361,349,341,368,363,388,353,340,339,356,396,392,351,391 | 0 |
434 | 353,340,386,339,356,351,342,359,357,362,350,345,380,352,354,382,385,347,344,358,384,337M,338,360,355,343,361,349,341,368,363,379,381,383 | 0 |
439 | 370,363,379,381,383,353,340,386,339,371,369,351,372,342,373,359,357,374,377,362,350,345,352,354,378,382,385,375,344,376,358,384,337M,338,360,355,343,361,349,341,368 | 0 |
1929 | 349,391,363M,390,379,381,339,369,373,359,377,350,345,352,337,388,338 | 0 |
1935 | 361M,337,388,338,349,395,391,340,363,390,379,381,372,342,380,394,339,374,369,362,359,393,350,345,352,344,376,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,363,378,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 |