I am introducing in my coreData DB some objects.
The problem is that it is quite slow(8-10 seconds) although i am introducing only 50 records.
I am introducing these records individually, could the insertion be faster if I introduce them all at once? If yes, how can I do so(insert an array to coreData) ?;
Any other coreData speed-insertion tips would be welcome 🙂
I would use Instruments and run the Profiler instrument over your insert operation and see what is actually slowing it down. My guess would be that you’re performing some sort of deserialization or parsing when inserting the object, or one of the other common slowdowns of data operations. Make sure you’ve got the problem identified before optimizing.