Re: loooong saveChanges prep-stage

2024-01-31 Thread Jérémy DE ROYER via Webobjects-dev
Hi, That’s why for big or background processes, I create dedicated ObjectStoreCoordinator using : ERXObjectStoreCoordinator _tmpObjectStoreCoordinator = new ERXObjectStoreCoordinator(true); WOSession _localSession = new WOSession(_tmpObjectStoreCoordinator); _localSession.setSelectedUtilisateu

Re: loooong saveChanges prep-stage

2024-01-31 Thread OCsite via Webobjects-dev
Thanks, guys! I am pretty sure though the problem can't be a background process either reading for a long time or saving for a long time, for I do use the ERXAdaptorChannelDelegate.trace logs and through DatabaseContextDelegate.databaseContextWillPerformAdaptorOperations I log each save — and

Re: loooong saveChanges prep-stage

2024-01-31 Thread Aaron Rosenzweig via Webobjects-dev
Check your "willUpdate()" logic and similar things such as "didUpdate()". It may be doing lots of calculations in certain situations that is almost but not quite an infinite loop. On Wed, Jan 31, 2024 at 5:59 AM OCsite via Webobjects-dev < webobjects-dev@lists.apple.com> wrote: > Thanks, guys! >

Re: loooong saveChanges prep-stage

2024-01-31 Thread Ramsey Gurley via Webobjects-dev
Are you hosting your database? If so, don't rule out a problem outside your application and in your database. It could be low memory. If you can't fit all the tables/indexes into memory, you fall off a performance cliff by going to disk. It could also be an antivirus scanner that kicked off on y