What is the difference between storing data in CORE data and storing them in File system. And on what basis should one choose between them?
Core data is nice when your application data is very structured, whereas just serializing things to the file system is useful when you are just shuffling around semi-structured data (e.g., an NSDictionary with some arbitrary keys and values).
Another advantage of Core Data is that you can (when using the NSSQLiteStoreType store type) store (and efficiently query) more data that can fit in the device's memory, which is something that would be a challenge to do with manually serialized objects.
So in short I would recommend Core Data if any of the following are true:
I would recommend using serialized data really only when you have small amounts loosely-structured data, such as a dictionary of user preferences.
In any case, you should take the Core Data tutorials if you haven't already. Even if you don't wind up using Core Data, it is very useful to understand the concepts for other reasons (e.g., because it ties into the Undo/Redo system).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With