Home > DeveloperSection > Interviews > Core-Data Vs SQLite in iOS

Posted on    November-15-2015 11:46 PM

 iPhone iPhone  Ios  Objective C 
 1 Answer(s)
  280  View(s)
Rate this:

Tarun Kumar

Total Post:107

Posted on    November-16-2015 12:46 AM

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

Don't want to miss updates? Please click the below button!

Follow MindStick