Prebuilt Realm Db #3666
-
Just came across realm-dotnet, as an alternative to sqlite, and wondering if it might fit my needs. I have a simple scenario where I have a couple of tables that will rarely get changed, with a couple of hundred records at most. In a sqlite scenario, I would usually create the database and tables using a tool like sqlitebrowser for example, then ship the prebuilt database, tables and records with the application. I can't wrap my head around Realm as a local storage solution yet but curious if it could handle a prebuilt objects scenario like this one, and how? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
In our experience this should work just fine! |
Beta Was this translation helpful? Give feedback.
-
My opinions: Realm database is a better alternative to SQLite even for medium sized database. PROS: You get a out of the box
CONS:
As for your question you can ship your database with your application just like SQLite. If there's a database file at the RealmConfig specified path, it will be loaded in the Realm. If not, a new empty one will created with a default schema costructed by the object model you define (objects implementing IRealmObject) |
Beta Was this translation helpful? Give feedback.
-
Hi @usefulBeeing The announcement mentions the deprecation of device SDKs (Realm Sync), which could potentially impact Realm in the future. If you plan to rely on device sync functionality, you might want to start exploring alternative solutions. |
Beta Was this translation helpful? Give feedback.
My opinions:
Realm database is a better alternative to SQLite even for medium sized database.
PROS:
You get a out of the box