Memory hike with large database using NSCoreDataCoreSpotlightExporter

100 views Asked by At

I have successfully implemented CoreSpolight Exporter on my Coredata setup as the following post: In iOS 11, how to make core data searchable in core spotlight

Since my previous version of Coredata does not has Spotlight indexing, adding the delegate will now index the data. Which works great.

However, we've noticed that when the database is too big, we get a memory hike reaching 2GB during the initial app launch. Sometimes this causes the app to crash.

Is there anything can be done? I don't see how we can ask the delegate to batch inserts, or are we using this incorrectly?

0

There are 0 answers