Re: Why no -[NSManagedObjectContext deleteObjects:] ?
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