---
title: "Core-Data Vs SQLite in iOS"  
description: "Core-Data Vs SQLite in iOS"  
author: "Tarun Kumar"  
published: 2015-11-15  
updated: 2020-09-22  
canonical: https://www.mindstick.com/interview/22899/core-data-vs-sqlite-in-ios  
category: "iphone"  
tags: ["iphone", "ios", "objective c"]  
reading_time: 2 minutes  

---

# Core-Data Vs SQLite in iOS

- Core-Data is an object graph management framework. It manages a potentially very large graph of object instances.\
- It allowing an app to work with a graph that would not entirely fit into memory by faulting objects in and out of memory as necessary.\
- Core Data also manages constraints on properties and relationships and maintains reference integrity (like: keeping forward and backwards links consistent when objects are added/removed to/from a relationship).\
- Core Data is thus an ideal framework for building the "model" component of an MVC architecture.\
- To implement its graph management, Core Data happens to use sqlite as a disk store. It could have been implemented using a different relational database or even a non-relational database such as CouchDB.\
- As others have pointed out, Core Data can also use XML or a binary format or a user-written atomic format as a backend (though these options require that the entire object graph fit into memory).

## Answers

### Answer by Tarun Kumar

- Core-Data is an object graph management framework. It manages a potentially very large graph of object instances.\
- It allowing an app to work with a graph that would not entirely fit into memory by faulting objects in and out of memory as necessary.\
- Core Data also manages constraints on properties and relationships and maintains reference integrity (like: keeping forward and backwards links consistent when objects are added/removed to/from a relationship).\
- Core Data is thus an ideal framework for building the "model" component of an MVC architecture.\
- To implement its graph management, Core Data happens to use sqlite as a disk store. It could have been implemented using a different relational database or even a non-relational database such as CouchDB.\
- As others have pointed out, Core Data can also use XML or a binary format or a user-written atomic format as a backend (though these options require that the entire object graph fit into memory).


---

Original Source: https://www.mindstick.com/interview/22899/core-data-vs-sqlite-in-ios

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
