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