6

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?

2 Answers 2

5

Unfortunately it's not possible at this time in OS X 10.10/iOS 8.

An NSBatchUpdateRequestis 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).

Sign up to request clarification or add additional context in comments.

Comments

5

Finally you can, in the new WWDC apple introduced NSBatchDeleteRequest(wwdc 2015)

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.