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