Reputation: 105
I have an idea about app in Swift. I will have to store huge amounts of text (essays) and have that sorted in table view by alphabetical order. I am not sure what is the best to store those essays and how to do it. Core data? userdefaults?
Upvotes: 0
Views: 1844
Reputation: 1
Realm : Realm scalability is an important feature. Realm can handle many users and a significant volume of data. Realm includes concise and well-written documentation for developers, which translates into faster development processes.
coreData : Core Data is a persistence framework, not a database. The framework includes built-in capabilities that reduce code developers write by 70 percent.
Upvotes: 0
Reputation: 1205
Just advice, if you want to store big data I would recommend Realm swift database. As for me it's much better in this way than CoreData as it can be simply used with multithreading(CoreData is much more harder as you need to manage it on your own). And if you are saving really huge amount of data I think it would be better to perform this action on background just to prevent lagging in programs main thread. Hope that helps you.
Upvotes: 2
Reputation: 7637
Best way to store big data locally is Sqlite or Core Data which is an interface over Sqlite, but has some advantages like visual objects (entities + relationships), object graph management, etc. Don't save big data in NSUserDefaults because it's slow and it makes hard to maintain complex objects.
Upvotes: 2