{
"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,337M,361,338,339,369,395,376,360,375,374,394,347,341,373,354,356,358,363,372,353,393,390,371,362,351,368,391,370,359,344,340,342,392,378,388,343,350,349,377,396 | 0 |
388 | 381,343,350,349,386,382,355,357,345,352,337M,361,338,379,385,339,360,380,384,347,341,354,356,358,363,353,362,351,368,383,359,344,340,342 | 0 |
389 | 378,351,383,377,344,340,342,381,343,350,349,386,382,355,357,369,376,345,352,337M,338,375,379,385,339,374,380,373,384,347,372,341,354,356,358,371,353,370 | 0 |
395 | 354,356,358,353,351,344,340,342,343,350,349,355,357,345,352,337M,338,339,347,341 | 0 |
402 | 392,362,388,347,368,341,359,396,354,356,358,353,395,351,361,344,340,342,343,350,349,360,394,355,357,345,352,337M,338,393,339,390,363,391 | 0 |
405 | 371,363,391,370,392,362,378,388,347,368,341,359,377,396,354,356,358,353,369,395,351,376,361,344,340,342,375,343,350,349,360,374,394,355,357,373,345,352,337M,372,338,393,339,390 | 0 |
407 | 345,352,337M,338,393,339,390,363,383,391,392,362,381,388,347,368,386,341,359,382,396,354,356,358,353,379,385,395,351,380,361,344,340,342,343,384,350,349,360,394,355,357 | 0 |
410 | 343,350,349,355,357,345,352,337M,338,339,341,354,356,358,353,351,344,340,342 | 0 |
413 | 360,372,344,340,342,343,371,350,349,370,355,357,345,378,363,352,337M,338,339,377,362,368,359,369,376,341,354,356,358,375,353,374,361,373,351 | 0 |
414 | 353,374,361,373,351,360,372,344,340,342,343,371,350,349,370,355,357,345,378,363,352,337M,338,339,377,362,368,359,369,376,341,354,356,358,375 | 0 |
417 | 341,354,356,358,353,351,344,340,342,343,350,349,355,357,345,352,337M,338,339 | 0 |
420 | 341,354,356,358,353,351,344,340,342,343,350,349,355,357,345,352,337M,338,339 | 0 |
425 | 337M,338,339,341,354,356,358,353,347,351,344,340,342,343,350,349,355,357,345,352 | 0 |
426 | 376,384,355,357,375,345,352,337M,338,374,339,373,372,383,371,381,341,354,356,358,370,386,382,353,378,377,351,379,385,344,340,342,343,350,349 | 0 |
1937 | 342,344,340,394,343,350,349,376,384,355,357,361M,375,393,345,390,352,337,338,360,374,339,391,373,392,388,372,396,371,381,363,347,341,354,356,358,370,386,382,362,353,378,395,368,380,359,377,351,379,385,369 | 0 |
1970 | 368,359,377,379,369,340,350,349,361M,352,337,338,360,339,381,363,370,362 | 0 |
1972 | 370,362,368,359,379,369,340,350,349,361M,352,337,338,360,339,381,363 | 0 |
2000 | 363,362,369,390,391,349,396M,338 | 0 |
2001 | 363,362,369,390,391,349,396M,338 | 0 |