• 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: Eric Morand <email@hidden>
  • Date: Tue, 17 Jan 2006 20:56:34 +0100


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)



============================================= Automator Ketchup : http://automatorketchup.blogspot.com



_______________________________________________
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


  • Follow-Ups:
    • Re: Core Data and multithreading (was Re: [Core Data] Improve save performance ?)
      • From: Chris Hanson <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>)

  • Prev by Date: Re: Translucent black window
  • Next by Date: Re: Translucent black window
  • Previous by thread: 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