I have an app that uses an SQLite database to store some information.
In the first installation of the app I create the database and pass a script to include the necessary data in it. Among these data I have a master of administrative regions of Spain, which implies a slow initialization process. What are the best practices to carry out this initial load?
I've tried throwing it in a background thread, but if I do, I get an EXC_BAD_ACCESS error.