{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "163.73"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "11.50"
},
"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": 11,
"filtered": "12.51",
"index_condition": "(`eshopuga_upgr_4122`.`cscart_products_categories`.`product_id` in (425,407,323,389,402,1972,388,426,409,1974,404,325,1936,387,386,416,326,441,322,1957))",
"cost_info": {
"read_cost": "92.00",
"eval_cost": "2.30",
"prefix_cost": "138.42",
"data_read_per_join": "184"
},
"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": 11,
"filtered": "100.00",
"cost_info": {
"read_cost": "11.50",
"eval_cost": "2.30",
"prefix_cost": "152.23",
"data_read_per_join": "184"
},
"used_columns": [
"product_id",
"category_id",
"position"
]
}
}
]
}
}
}
product_id | category_ids | position |
---|---|---|
322 | 342,345,338,374,356,349M,370,354,358,375,371,352,376,351,350,377,369,355,372,353,344,357,378,339,341,373 | 0 |
323 | 357,356,349M,354,358,352,351,350,355,353 | 0 |
325 | 355,353,357,356,349M,358,352,351,350 | 0 |
326 | 378,383,385,351,373,382,396,350,361,355,360,392,363,374,395,353,357,379,370,391,375,381,394,389,371,354,356,349M,390,362,376,380,388,359,377,358,369,386,372,393,368,384,352 | 0 |
386 | 339,341,352,351,342,350,345,338,347,355,343,353,357,340,337M,354,356,349,358,344 | 0 |
387 | 349,358,344,339,341,352,351,342,350,345,338,347,355,343,353,357,340,337M,354,356 | 0 |
388 | 337M,368,384,354,356,349,383,385,382,358,361,344,339,341,360,363,352,379,351,342,350,345,338,347,355,343,381,353,357,340,362,380,359,386 | 0 |
389 | 372,380,386,378,337M,373,384,354,356,349,383,385,382,358,374,344,339,341,370,352,379,375,351,342,350,345,338,347,355,371,343,381,376,353,357,377,369,340 | 0 |
402 | 362,393,353,359,357,340,368,396,337M,392,354,356,395,361,349,360,363,358,344,391,339,341,394,352,351,342,390,350,345,338,347,388,355,343 | 0 |
404 | 338,350,345,347,355,343,353,357,340,337M,354,356,349,358,344,339,341,352,351,342 | 0 |
407 | 390,352,388,351,342,338,362,350,345,380,393,347,359,355,343,386,368,396,353,357,384,340,383,385,382,392,395,361,337M,360,363,354,356,349,379,391,394,358,344,339,341,381 | 0 |
409 | 358,344,339,341,352,351,342,350,345,347,355,343,353,357,340,337M,354,356,349 | 0 |
416 | 354,356,349,390,358,388,344,339,341,338,362,393,352,359,351,342,350,345,368,396,355,343,353,357,392,395,361,340,360,363,391,337M,394 | 0 |
425 | 337M,354,356,349,358,344,339,341,338,352,347,351,342,350,345,355,343,353,357,340 | 0 |
426 | 353,357,376,340,377,381,372,337M,378,354,356,373,349,386,358,344,384,339,341,374,338,383,385,352,382,370,351,342,350,345,375,355,343,371,379 | 0 |
441 | 360,355,363,343,371,369,353,357,340,381,372,380,337M,362,354,356,349,359,347,358,368,344,384,339,341,338,383,352,382,370,361,351,342,350,345 | 0 |
1936 | 370,361M,379,391,350,345,394,360,376,363,377,369,390,353,388,381,378,373,337,386,362,356,396,349,359,374,384,339,341,395,338,375,352 | 0 |
1957 | 339,338,352,370,361M,379,360,363,340,377,369,331,381,337,362,368,349,359 | 0 |
1972 | 368,349,359,339,338,350,352,370,361M,379,360,363,340,369,381,337,362 | 0 |
1974 | 337,362,368,349,359,339,338,350,352,370,361M,379,360,363,340,369,381 | 0 |