Core Data vs Sqlite and performance

I am wondering if anyone has real numbers in the world in terms of performance difference between an old sqlite application that was converted to Core Data in SDK 3.0.

I suspect that under the hood, Core Data just uses sqlite anyway and that it adds a bit of overhead for convenience, but I thought I would ask anyway.

+23
iphone cocoa-touch core-data
Jun 25 '09 at 17:35
source share
2 answers

Master data is highly optimized for caching, lazy loading, and memory management.

If you use it (with SQLite storage type), especially in combination with NSFetchedResultsController, you should get better performance than you could get with SQLite yourself.

Apple worked hard to get Core Data to work well on the iPhone. My application has switched from SQLite w / FMDB to Core Data, and now it is faster and more stable with less code.

+34
Jun 25 '09 at 18:41
source share
— -

Core Data can use sqllite - the developer must configure it, so your suspect is correct. On the phone, I would suggest sqllite - the best idea.

I think one of the biggest benefits you can get from using Core Data is the lazy loading of data and crashes to save to memory. Therefore, you also need to think about such things when you consider performance, since the amount of free memory you have will also affect performance.

+2
Jun 25 '09 at 17:50
source share



All Articles