My current method of deleting all of a certain kind of object in Core Data is to iterate over each object and delete manually, which is rather expensive.
Using the new batch updates added to Core Data this year, can it be accomplished like that?
My current method of deleting all of a certain kind of object in Core Data is to iterate over each object and delete manually, which is rather expensive.
Using the new batch updates added to Core Data this year, can it be accomplished like that?
Unfortunately it's not possible at this time in OS X 10.10/iOS 8.
An NSBatchUpdateRequest
is only limited to update selected properties. More information on this can be found in this blog post (see the "Deleting a lot of Objects: Not a Problem" section).