What is the maximum capacity of Core Data?

  • What is the maximum capacity of master data?
  • Is there a capacity limit defined at the application level? How, out of the total available Core Data space, can my application consume only the sum of X?
  • What if my application tries to exceed X?
+7
iphone core-data
source share
1 answer

Core Data does not have hard disk space, so you are practically limited by the available disk space on the system. On iOS (and most of the time on OS X), Core Data is supported by SQLite, so if there is any limitation, this is the size of the SQLite database to back up. Unsaved data is stored in RAM, and iOS does not support paging memory, so your unsaved data set is limited by the available RAM on the device. If you try to exceed RAM, your application will be disconnected. If you try to exceed disk space, I think the save action will fail with the corresponding NSError.

+12
source share

All Articles