Could you guys let me know which is better, using sqlite3 or core data? What are the pros and cons using either method?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What’s your use case?
Core Data is a pretty hefty framework and it offers a lot more than just plain old persistence. It incorporates support for faulting, relationship management of objects, schema migration support, validation and nice integration with UITableViews via the NSFetchedResultsController. The big win for me is that it’s completely modelled on objects. Sqlite is more than adequate for an app with a single isolated table, high scores in a game etc, but for anything more complex I would consider core data.
Apple’s introduction to Core Data mind help you decide if it’s appropriate for you or not…
Core Data Programming Guide