قالب وردپرس درنا توس
Home / IOS Development / swift – How to determine what to use [Sqlite, Realm, CoreData, User-default, JSON file] to store data iOS?

swift – How to determine what to use [Sqlite, Realm, CoreData, User-default, JSON file] to store data iOS?



After searching everywhere, I found that there was no proper comparison between SQLite, Realm, CoreData, UserDefaults and the JSON file.

You can easily find advantages and disadvantages, but it is difficult to know what to use.

I know the decision is completely dependent on the requirements. [Huge amount of data, Only insert, and delete operation]

  • Save user logged stories [Huge amount of data, Only insert, and delete operation]
  • Save contact numbers [Max 1000 numbers, Need fast fetch, and continuous operation]
  • Save simple GET API request [Huge amount of data, Only insert, and delete operation]
  • 19659008] Note: I'm not talking about storing sensitive information here.

    You are welcome to add / update several relevant issues.


  • Source link