kingston
kingston

Reputation: 1553

iPhone database

Could you guys let me know which is better, using sqlite3 or core data? What are the pros and cons using either method?

Upvotes: 0

Views: 53

Answers (2)

mmccomb
mmccomb

Reputation: 13807

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

Upvotes: 2

Shanmugaraja G
Shanmugaraja G

Reputation: 2778

Sqlite3 is better to use for the database, because of using this sqlite3 you can access easily the data and It's easier as you do query on other database like SQL, ORACLE.

Upvotes: 0

Related Questions