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