Using the new base updates of the base data, is batch removal possible?

My current method of deleting an entire specific object in Core Data is iterating over each object and deleting manually , which is quite expensive.

Using the new batch updates added to Core Data this year, can this be done?

+6
source share
2 answers

Unfortunately, this is not possible at this time in OS X 10.10 / iOS 8.

An NSBatchUpdateRequest limited only to updating the selected properties. More information about this can be found in this blog post (see "Deleting Multiple Objects: Not a Problem").

+5
source

Finally, you can enter NSBatchDeleteRequest ( wwdc 2015 ) in a new WWDC apple

+5
source

Source: https://habr.com/ru/post/976223/


All Articles