• 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: Core Data and multithreading (was Re: [Core Data] Improve save performance ?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data and multithreading (was Re: [Core Data] Improve save performance ?)


  • Subject: Re: Core Data and multithreading (was Re: [Core Data] Improve save performance ?)
  • From: Chris Hanson <email@hidden>
  • Date: Tue, 17 Jan 2006 15:57:40 -0800

On Jan 17, 2006, at 11:56 AM, Eric Morand wrote:

Le 17 janv. 06 à 19:56, Chris Hanson a écrit :

When working with Core Data, you MUST NOT interact with a managed object context from multiple threads without appropriately locking it. This is a requirement. There is no way to get around it. There are no situations where it is unnecessary. Any situation you find where it may appear unnecessary or where it seems to be working is a bug waiting to manifest.

I obviously lock the context before saving in my detached thread (and unock after). :o)

Yes, but are you also locking around all uses of the context in the main thread? If you have any bindings to managed objects registered with that context, by definition that is not the case.


  -- Chris

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >[Core Data] Improve save performance ? (From: Eric Morand <email@hidden>)
 >Re: [Core Data] Improve save performance ? (From: mmalcolm crawford <email@hidden>)
 >Re: [Core Data] Improve save performance ? (From: "Timothy J. Wood" <email@hidden>)
 >Re: [Core Data] Improve save performance ? (From: Eric Morand <email@hidden>)
 >Re: [Core Data] Improve save performance ? (From: Kay Roepke <email@hidden>)
 >Re: [Core Data] Improve save performance ? (From: Eric Morand <email@hidden>)
 >Re: [Core Data] Improve save performance ? (From: Scott Ellsworth <email@hidden>)
 >Re: [Core Data] Improve save performance ? (From: Eric Morand <email@hidden>)
 >Re: [Core Data] Improve save performance ? (From: Bill Bumgarner <email@hidden>)
 >Re: [Core Data] Improve save performance ? (From: Eric Morand <email@hidden>)
 >Re: [Core Data] Improve save performance ? (From: Shawn Erickson <email@hidden>)
 >Re: [Core Data] Improve save performance ? (From: Eric Morand <email@hidden>)
 >Re: [Core Data] Improve save performance ? (From: Kay Roepke <email@hidden>)
 >Re: [Core Data] Improve save performance ? (From: Eric Morand <email@hidden>)
 >Core Data and multithreading (was Re: [Core Data] Improve save performance ?) (From: Chris Hanson <email@hidden>)
 >Re: Core Data and multithreading (was Re: [Core Data] Improve save performance ?) (From: Eric Morand <email@hidden>)

  • Prev by Date: Re: Cocoa AppleScript question
  • Next by Date: Re: Comparing pixels in an image
  • Previous by thread: Re: Core Data and multithreading (was Re: [Core Data] Improve save performance ?)
  • Next by thread: Re: Core Data and multithreading (was Re: [Core Data] Improve save performance ?)
  • Index(es):
    • Date
    • Thread