4 ms·
What's the benefit of using realm instead of Sqlite + an ORM ?
by sametmax 10y ago
What's the benefit of using realm instead of Sqlite + an ORM ?
- bigfish24 10y agoHere are a couple we highlight: 1. Since Realm is not a relational database with an ORM, we don't run into the impedance mismatch. Relationships are first-class citizens. 2. Realm uses a zero-copy architecture. Objects and collections are lazy loaded offering benefits to both memory use and speed.
- sametmax 10y agoThank you.
- spotman 10y agoFor me it's: - simplicity, which in turns creates less complex code and less crashes - performance, which for my use case was faster than sqlite - slightly opinionated, in that it forces you to not access objects from different threads, which can eliminate a whole class of bugs (you could and should do this or a similar approach to prevent these with whatever solution, but Realm forces it)