{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "167.47"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "13.20"
},
"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": 13,
"filtered": "14.35",
"index_condition": "(`eshopuga_upgr_4122`.`cscart_products_categories`.`product_id` in (420,385,405,410,413,1970,417,1937,414,425,407,389,402,1972,388,426,1974,404,1936,387))",
"cost_info": {
"read_cost": "92.00",
"eval_cost": "2.64",
"prefix_cost": "138.42",
"data_read_per_join": "211"
},
"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": 13,
"filtered": "100.00",
"cost_info": {
"read_cost": "13.20",
"eval_cost": "2.64",
"prefix_cost": "154.27",
"data_read_per_join": "211"
},
"used_columns": [
"product_id",
"category_id",
"position"
]
}
}
]
}
}
}
product_id | category_ids | position |
---|---|---|
385 | 362,340,360,396,376,372,395,361,338,394,345,371,337M,355,370,375,393,344,349,352,357,378,343,350,368,374,392,342,391,351,377,390,353,354,356,388,347,373,363,339,359,358,341,369 | 0 |
387 | 339,358,341,340,338,345,337M,355,344,349,352,357,343,350,342,351,353,354,356,347 | 0 |
388 | 363,359,385,353,354,356,384,347,362,360,339,358,379,361,341,381,340,338,345,383,337M,355,380,344,349,368,382,352,357,343,386,350,342,351 | 0 |
389 | 350,342,351,369,385,353,354,356,376,372,384,347,371,339,358,370,379,341,381,340,375,378,338,345,383,337M,355,374,377,380,344,349,382,352,357,343,373,386 | 0 |
402 | 344,349,352,357,343,350,396,363,359,395,342,351,394,362,360,353,354,356,361,347,339,393,358,341,340,392,338,345,391,368,390,337M,355,388 | 0 |
404 | 337M,355,344,349,352,357,343,350,342,351,353,354,356,347,339,358,341,340,338,345 | 0 |
405 | 368,390,338,388,345,373,337M,355,369,344,349,396,363,352,359,357,376,372,395,343,394,362,350,360,371,342,370,361,351,375,393,353,354,356,378,347,339,358,374,392,341,340,391,377 | 0 |
407 | 358,382,392,341,340,391,386,368,390,338,388,345,337M,355,385,384,344,349,396,363,352,359,357,395,379,343,381,394,362,350,360,342,361,351,383,393,353,354,356,347,339,380 | 0 |
410 | 353,354,356,339,358,341,340,338,345,337M,355,344,349,352,357,343,350,342,351 | 0 |
413 | 342,374,351,377,353,354,356,339,373,358,368,341,340,369,338,376,372,345,371,363,337M,359,355,370,362,344,349,360,375,352,357,378,361,343,350 | 0 |
414 | 378,361,343,350,342,374,351,377,353,354,356,339,373,358,368,341,340,369,338,376,372,345,371,363,337M,359,355,370,362,344,349,360,375,352,357 | 0 |
417 | 344,349,352,357,343,350,342,351,353,354,356,339,358,341,340,338,345,337M,355 | 0 |
420 | 338,345,337M,355,344,349,352,357,343,350,342,351,353,354,356,339,358,341,340 | 0 |
425 | 341,340,347,338,345,337M,355,344,349,352,357,343,350,342,351,353,354,356,339,358 | 0 |
426 | 370,339,358,375,341,382,340,378,386,338,345,374,337M,355,377,385,344,349,384,352,357,373,343,350,379,381,342,351,376,372,353,354,356,371,383 | 0 |
1936 | 376,362,353,360,356,370,361M,339,375,391,341,390,378,388,386,338,345,374,337,377,396,395,349,384,352,373,369,394,350,379,381,363,359 | 0 |
1937 | 351,372,350,379,381,354,371,363,359,380,376,392,347,362,353,360,356,358,382,340,370,361M,339,375,391,341,390,378,388,355,386,338,368,345,374,385,344,337,357,377,396,343,395,349,384,352,373,369,394,342,393 | 0 |
1970 | 349,352,369,350,379,381,363,359,362,360,340,370,361M,339,338,368,337,377 | 0 |
1972 | 337,349,352,369,350,379,381,363,359,362,360,340,370,361M,339,338,368 | 0 |
1974 | 338,368,337,349,352,369,350,379,381,363,359,362,360,340,370,361M,339 | 0 |