• 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: ?? about opportunistic locking...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ?? about opportunistic locking...


  • Subject: Re: ?? about opportunistic locking...
  • From: Mark Ritchie <email@hidden>
  • Date: Mon, 17 May 2010 14:30:12 -0700

Hey!

On 17/May/2010, at 2:18 PM, Theodore Petrosky wrote:
> so either I am doing something wrong or I don't understand opportunistic locking..

Optimistic locking is for the case when one WOA is optimistic that it's changes to a record won't conflict with another WOA's changes to the same record.

I'm guessing that you have a single WOA, in which case optimistic locking isn't doing what you want.  Your EOEditingContext delegate needs to catch the notifications for editingContextShouldMergeChangesForObject() and editingContextDidMergeChanges() and handle things since the default is to silently merge the new over the old.

Apparently we need a wiki page about this since it's been the matter of some contention lately. ;-)
M.

 _______________________________________________
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

  • Follow-Ups:
    • Re: ?? about opportunistic locking...
      • From: Mike Schrag <email@hidden>
References: 
 >?? about opportunistic locking... (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: Re: D2W String <Pre> Formatting
  • Next by Date: Re: ?? about opportunistic locking...
  • Previous by thread: ?? about opportunistic locking...
  • Next by thread: Re: ?? about opportunistic locking...
  • Index(es):
    • Date
    • Thread