We have switched ORM framework from XPO to Entity Framework. We have been satisfied with the performance working on XPO.
Our algorithms contain many read operations on foreign key related collections thus we need these up to date and also there are bunch of operations which invoke DetectChanges
method (we have AutoDetectChanges
enabled). Each call of DetectChanges
has very poor performance.
Second matter is Delete
method which requires subsequent call of SaveChanges
to have collections updated – it is also very slow.
Is there any possibility to disable AutoDetectChanges
holding collections updated and improve performance or any other solution to improve performance?
example project github link