Should You Use Realm or CoreData in Your iOS App?

Rashad Shirizada
5 min readJun 24, 2022

There are two primary ways of storing data in an iOS app: CoreData and Realm. They both have their advantages and disadvantages, so deciding which to use for your app can be difficult. This article will help you decide which one to use and how to implement it once you’ve made that decision, so you’ll get the maximum amount of flexibility out of whichever one you choose!

Pros and Cons of both Data Stores

This post will show you both sides of that, allowing you to make an informed decision based on your needs. While no mobile app developer can keep up with all of the new frameworks and libraries that are released every day, there are a few stalwarts that have made a big impact on development. Core Data and Realm are two such frameworks, both providing functionality not provided by Apple’s standard SQLite engine. Which framework will you choose for your next project? Let’s find out.

Comparison Table

If you’re writing a web application, you probably have at least some data to store. If you have an iPhone app or a simple game, your situation is likely similar. To persist these pieces of data, Apple has provided two very capable frameworks: Core Data and Realm. Let’s see how they compare on basic functionality and ease of use.

Source

--

--