Reputation: 1921
Hi i am making an app which will save data(say... time,location ,etc) many times in a day
NOW i have to maintain full history of this...for months
SO i was asking which data saving type i use
sqlite database or NSUserDefault (i am aware of only these 2)
or is there any other method?
Thank you
Upvotes: 1
Views: 136
Reputation: 1480
Sqlite is easy to everyone have some database knowledge.
Core data need much time to learn, but when you know it, use it is more easy than Sqlite.
NSUserDefault only use to save some small data, like configuration data.
Upvotes: 2
Reputation: 12787
You can use sqlite and core data for your database.
use of NSUserDefault is not proper in case of large database. NSUserDefault uses with little amount of data (such as passcode ).
Upvotes: 1
Reputation: 15588
You could abstract all of this away using Core Data. You are right that you still need to decide on which backing store to use (flat file, xml, sqlite). xml is human readable which is good for debugging, but for the large amount of data you will have, sqlite will be much faster.
http://developer.apple.com/library/ios/#documentation/DataManagement/Conceptual/iPhoneCoreData01/Introduction/Introduction.html
Upvotes: 2