Re: Yet another concurrency question
Re: Yet another concurrency question
- Subject: Re: Yet another concurrency question
- From: Mike Schrag <email@hidden>
- Date: Wed, 8 Aug 2007 15:11:10 -0400
You might be able to do it by overriding
databaseContextWillPerformAdaptorOperations on a database context
delegate and inject your own adaptor operations? I've never tried
this but I think that will let you do what you want ...
ms
On Aug 8, 2007, at 1:51 PM, Miguel Arroz wrote:
Hi!
Ok, here goes another one.
I need to change some objects in a context, and saveChanges.
saveChanges may, or may not fail, depending on OL failures. Nothing
new so far.
The problem is that I need to delete a lot of objects,
possibility thousands or tens of thousands. As I can't do this in
the regular way (too slow), I need to use Wonder feature that
deletes all the objects according to a given fetch spec (I assume
this function exists somewhere, although I can't find it right now).
My question is: can I do the Wonder DELETE command in the same
database transaction as the editing context save changes one? How?
If I can't the DB will be inconsistent for some moments, and that
may cause chaos.
Yours
Miguel Arroz
Miguel Arroz
http://www.terminalapp.net
http://www.ipragma.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mdimension.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden