• 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: Why no -[NSManagedObjectContext deleteObjects:] ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why no -[NSManagedObjectContext deleteObjects:] ?


  • Subject: Re: Why no -[NSManagedObjectContext deleteObjects:] ?
  • From: Bill Bumgarner <email@hidden>
  • Date: Sat, 1 Sep 2007 10:19:57 -0700

On Sep 1, 2007, at 7:20 AM, Jerry Krinock wrote:
NSManagedObjectContext implements a deleteObject: method which deletes a single object. What if I want to delete an array or set of objects? Since CoreData is so High Level and Efficient, I would expect there to be an optimized deleteObjects: method.

Deleting an object from a managed object context is relatively cheap as it does not impact the persistent store. That is, deletion is "just" editing the object graph in memory as maintained by the context.


The real expense comes at the point in time the changes contained in the managed object context are committed to the underlying store. At that point, CoreData can optimize how the set of changes are committed to the underlying persistent store(s).

b.bum

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Why no -[NSManagedObjectContext deleteObjects:] ? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: core data app questions - help!
  • Next by Date: Re: NSBezierPath append CGGlyph
  • Previous by thread: Re: Why no -[NSManagedObjectContext deleteObjects:] ?
  • Next by thread: Re: Why no -[NSManagedObjectContext deleteObjects:] ?
  • Index(es):
    • Date
    • Thread