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