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