What is the basic difference between Data and SQLite, as both are databases and can be used with iOS development. Which is better for saving and retrieving large data?
Although Core Data supports SQLite as a store type, the store format—like those of the other native Core Data stores—is private. You cannot create a SQLite database using the native SQLite API and use it directly with Core Data, nor should you manipulate an existing Core Data SQLite store using native SQLite API.
Core Data is heavily optimized with regards to caching, lazy-loading and memory management. If you use it (with the SQLite store type), especially in conjunction with NSFetchedResultsController, you should get better performance than you could get with SQLite on your own.
The persistence part of Core Data is backed by SQLite, which is a relational database.
There is a huge difference between these two.
SQLite is a database itself like we have MS SQL Server.
But Core Data is an ORM (Object Relational Model) which creates a layer between the database and the UI. It speeds-up the process of interaction as we don't have to write queries, just work with the ORM and let ORM handles the backend.
For saving or retrieving large data, I recommend to use Core Data because of its abilities to handle the lower processing speed of iOS devices. Hope this helps.
@Arundhati: Using Core Data we can optimize the memory efficiently.
Regards.
Apart from being ORM (Object Relational Model) You can compare Core-Data and SQLite as;
SQLite:
Core Data:
Additionally apart from SQLite as back-end Core data can use XML or binary format for storing data to disk.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With