O'Reilly logo

Core Data in Swift by Marcus S. Zarra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Difference Between Light and Heavy Migrations

There are two types of migrations for Core Data: light (also referred to as lightweight or inferred) migration and heavy (also referred to as manual) migration. When we’re working with SQLite persistent stores, the difference between these two types of migration is significant.

A light migration of a SQLite persistent store occurs within the SQLite file itself. No objects are loaded into memory, and therefore the memory requirements of the migration are quite low. In addition, since the migration is occurring within the database file, it’s very fast. Although the size of the database file still affects the speed of the migration, a light migration of large database will still be remarkably faster ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required