{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "167.99"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "13.44"
},
"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.61",
"index_condition": "(`eshopuga_upgr_4122`.`cscart_products_categories`.`product_id` in (1929,398,1964,434,383,1927,435,419,403,324,1965,440,1966,431,1973,1968,1963,327,1934,2000,2001,385,405,413))",
"cost_info": {
"read_cost": "92.00",
"eval_cost": "2.69",
"prefix_cost": "138.42",
"data_read_per_join": "215"
},
"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.44",
"eval_cost": "2.69",
"prefix_cost": "154.55",
"data_read_per_join": "215"
},
"used_columns": [
"product_id",
"category_id",
"position"
]
}
}
]
}
}
}
product_id | category_ids | position |
---|---|---|
324 | 363,349,340,388,390,396,361,391,392,338M,354,350,368,362,357,352,395,393,351,360,356,353,359,355,358,394 | 0 |
327 | 384,377,382,355,358,363,349M,374,375,381,361,376,354,373,350,386,362,357,383,352,372,370,371,380,351,385,360,356,378,369,379,353,359 | 0 |
383 | 344,360,356,378,353,359,384,347,340,377,355,358,363,349,374,337M,338,375,381,339,361,343,376,345,368,341,354,373,350,386,362,357,352,342,372,370,371,351,385 | 0 |
385 | 370,369,371,351,394,344,360,356,378,353,388,390,396,359,391,392,347,340,377,355,358,363,349,374,337M,338,375,339,361,343,376,345,368,395,341,354,373,393,350,362,357,352,342,372 | 0 |
398 | 362,357,352,342,351,394,344,360,356,353,388,390,396,359,391,392,347,340,355,358,363,349,337M,338,339,361,343,389,345,368,395,341,354,393,350 | 0 |
403 | 368,395,393,362,394,360,388,359M,392,363,361 | 0 |
405 | 341,354,361,350,372,370,368,395,357,369,393,371,352,342,378,362,351,344,356,353,377,390,396,391,394,360,374,347,340,375,388,359,355,358,376,349,392,337M,338,339,373,343,363,345 | 0 |
413 | 338,339,373,343,363,345,341,354,361,350,372,370,368,357,369,371,352,342,378,362,351,344,356,353,377,360,374,340,375,359,355,358,376,349,337M | 0 |
419 | 340,359,355,358,349,337M,338,339,343,363,345,395,341,354,393,361,350,368,357,352,342,362,351,390,396,391,394,344,356,353,388,360,389,392 | 0 |
431 | 353,388,360,392,359,355,358,349,337M,338,339,343,363,345,395,341,354,393,361,350,368,357,352,342,362,351,390,396,391,394,344,356 | 0 |
434 | 351,379,344,356,385,353,340,360,382,384,359,355,358,349,337M,338,339,343,381,363,345,341,354,361,350,383,386,368,357,347,352,342,380,362 | 0 |
435 | 352,390,396,380,391,394,362,388,351,379,392,385,360,382,384,359,349M,395,393,381,363,361,383,386,368 | 0 |
440 | 361,375,376,368,373,390,396,391,394,362,388,392,372,370,369,371,360,359M,395,393,363,377,374 | 0 |
1927 | 363,377,374,361M,353,340,351,379,390,391,362,358,337,338,378,370,339,369,349,345,350,359 | 0 |
1929 | 350,359,363M,352,377,373,388,379,390,391,337,338,339,369,381,349,345 | 0 |
1934 | 381,349,345,342,350,359,344,356,374,361M,363,352,377,396,394,340,373,355,362,372,379,384,390,358,391,360,370,354,337,338,395,339,369 | 0 |
1963 | 337,338,339,369,381,349,350,359,361M,363,352,377,340,388,362,378,379,360,370 | 0 |
1964 | 360,370,337,338,368,339,369,381,349,359,361M,363,377,340,362,378,379 | 0 |
1965 | 362,379,360,370,337,338,368,339,369,381,349,359,352,361M,363,377,340 | 0 |
1966 | 340,362,379,360,370,337,338,368,339,369,381,349,359,352,361M,363,377 | 0 |
1968 | 361M,363,340,362,379,350,360,370,337,338,339,369,381,349,359,352 | 0 |
1973 | 359,352,377,361M,363,340,362,379,360,370,368,337,338,339,369,381,349 | 0 |
2000 | 338,369,349,363,396M,362,390,391 | 0 |
2001 | 391,338,369,349,363,396M,362,390 | 0 |