Entity Framework Plus - Audit Extension - Consuming CPU Percentage High (above 50%)
Team, i am using Entity Framework Plus - Audit Extension for the audit trail feature but facing an issue - as its consuming 50% CPU Percentage High and makes the server slow..any other optimization solution to make them low...Thanks and appreciate your help
Hello @manojkumaraut ,
Unfortunately, if you save a lot entities, it will create a lot of AuditEntryProperty as well. The high consuming CPU is probably caused by the SaveChanges method when saving all audit entry properties.
One way to fix it is to save all audit entries and properties using BulkInsert from Entity Framework Extensions. Our commercial library allow to save entities with high performance bulk operations. Is it a solution that might interest you?
Best Regards,
Jonathan