0

Before I go to write my data to my coredata I call

[self deleteAllObjects:@"MyEntity"];

But this seems to iterate through every single object and delete them which seems abit slow. I was wondering if there is a better / quicker way of doing this.

I have checked out the coredata notes on the developer site.. but thats the only function I can find for deleting entries out of your entity.

HurkNburkS
  • 5,492
  • 19
  • 100
  • 183

1 Answers1

0

Since iterating is expensive, there are quicker ways. You can check these answers that have been discussed on SO before here, here and here.

Community
  • 1
  • 1
Ravi
  • 7,929
  • 6
  • 38
  • 48