Search code examples
iphonesqlitecore-data

Difference between Core Data and SQLite


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?


Solution

  • 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.

    @Arundhati: Using Core Data we can optimize the memory efficiently.