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