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