8 ms·
Realm is awesome! I have been using it for a year now in a large production iOS/swift app with great success. Great job on the recent additions to the more fi
by spotman 10y ago
Realm is awesome! I have been using it for a year now in a large production iOS/swift app with great success.
Great job on the recent additions to the more fine grain notifications, with this I was recently able to reduce my own code, simplify and increase performance!
Core data is good and a powerful weapon, and certainly educational to learn its approach and how to use it effectively. I sometimes ponder if going through the that first has made me a more competent iOS developer.
Realm is the right tool for the job for me in most use cases. Don't see myself switching back anytime soon, keep up the good work!
- android521 10y agoDo you use your own data synchronization solution? It seems to difficult to do it right. We love Realm but we eventually choose couchbase because of its out of the box sync solution. I hope Realm consider this feature as most mobile developers all have to think about this problem.
- spotman 10y agoDo you mean from server to client? this is handled by the applications code, which inserts data primarily from a rest api into realm in a background thread. Not all data comes from rest however, some from apns or xmpp, depending on application state and the particular data. Syncing is hard to get right. If realm offered it I would consider but I would not want them to do that at the sacrifice of making their product as solid as it is. How does couch handle it? Does it have push and poll type of hooks?
- bigfish24 10y ago(Adam from Realm) thanks for the kind words! Fine grained notifications were very important to us to support to enable a more reactive architecture. Glad it has benefited your code base!
- sametmax 10y agoWhat'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)