views:

62

answers:

1

Example: User installs app v.1.0, adds data. Then the dev submits 10 updates in 10 weeks. After 11 weeks, the user wants v.11.0 and grabs a copy from the app store.

Assuming that the app has got 11 .xcdatamodel versions inside, where ***11.xcdatamodel is the current one, what would happen now since the persistent store of the user is ages old? would the migration happen 10 times, step-by-step through every migration iteration?

Or does the actual migration of data (lets assume gigabytes of data) happen exactly once, after Core Data (or the persistent store coordinator) has figured out precisely what to do to go from v.1.0 to v.11.0?

+2  A: 

As I answered in your other question on this subject, there would only be one migration as Core Data does not understand the concept of versions. There is no timeline of models; it will only work with a source and a destination.

In your example, the source would be v1.0 and the destination would be v11.0. One migration.

Marcus S. Zarra