Search code examples
ioscore-datacore-data-migration

Core Data Migration - Remotely


I’m creating an application that uses Core Data to store information and uses web services to get the data that is needed.

To update Care Data schema, I thought about send the database (with all data) to the server via web service and the server migrate the database and return to the application the new database. With this I’m trying to put the migration process logic on the server. Is it possible to do that?


Solution

  • This sounds like a really dangerous thing to do because you assume that you a)know exactly what is done to the coredata file (btw, it is not always a database) during a migration b)can anticipate and adapt to any changes Apple might make to the migration process.

    It very important when using Core Data to not think of it as a database. It is an object persistence framework that sometimes uses a database for storage.