I am having an OutOfMemoryException while upgrading a date field of several hundreds of thousands of entities in one transaction.
Code sample :
Dataobjects.Net 126.96.36.1991, the code is in an opened transaction which does many other upgrades but none will go out of memory.
Is this a bug or is there a better pattern to do this ? Can i use nested transaction for it ? Shall I call
Hello Benoit Nesme
Domain building (especially in Perform and PerformSafely mode) is quite resource-intensive process.
If you need only to update date fields you may try to move this operations to UpgradeHandler.OnComplete(Domain domain) when all the building operations are finished.
I found some problems on disposing of session cache. We'll fix them in one of next versions, but, unfortunately, not in 4.6 branch.
answered Aug 07 '15 at 03:20