Cocoa Touch Data Saving

I am experimenting with master data, plist files, flat files and sqlite. It seems like I cannot distinguish the efficiency of using small datasets. Regarding surface differences (e.g. API), I know the difference.

But I'm trying to figure out which persistence model is best for this situation.

+3
source share
1 answer

For small datasets, if you need the ability to read and write, you should go with NSUserDefaults- if it gives you the ability to store and retrieve the key-value without too much hassle.

, plist , API .

, , , .

Sqlite , , sql .

, , , CoreData. CoreData , , , .

+4

Source: https://habr.com/ru/post/1724239/


All Articles