• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Yet another concurrency question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Yet another concurrency question


  • Subject: Re: Yet another concurrency question
  • From: Mike Schrag <email@hidden>
  • Date: Wed, 8 Aug 2007 15:12:00 -0400

EXTEND ERXDatabaseContextDelegate ... don't replace it. Or use Chuck's multidelegate thing.

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


References: 
 >Yet another concurrency question (From: Miguel Arroz <email@hidden>)

  • Prev by Date: Re: Yet another concurrency question
  • Next by Date: Re: Another concurrency problem
  • Previous by thread: Re: Yet another concurrency question
  • Next by thread: _exceptionWithDatabaseContextInformationAdded
  • Index(es):
    • Date
    • Thread