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