Faster, more understandable code and less disk space. It's great and I wonder how this miracle possible.
Show HN: Realm for Android
11–20 of 66 posts
Re: Show HN: Realm for Android
#12If the main selling point is a nice interface, its not much of an improvemrnt over things like ActiveAndroid (ORM for sqlite) I'll need to read more to judge it on other grounds.
Re: Show HN: Realm for Android
#13The "a replacement for SQLite & Core Data" description confuses me. Is this a SQLite replacement, in that it is its own database, or a CoreData replacement, in that it's "just" a nice API over some other persistence layer (afaik, CoreData gives you a nice consistent API over a number of concrete persistence implementations, with SQLite being one such implementation)
Re: Show HN: Realm for Android
#14Looks interesting for sure, are you going to update the Pricing page for Android? Same terms there?
Re: Show HN: Realm for Android
#15Re: Show HN: Realm for Android
#16the `android-apt` dependency needs to be switched to 1.4 else you get:
A problem occurred configuring project ':cachetest'.
> No such property: projectDependencies for class: com.android.build.gradle.internal.api.ApplicationVariantImpl_Decorated
Edit #1: Is there any way to instantiate my RealmObject from JSON? I'm currently using GSON to take API calls POJOs, I can't figure out any way to do this using Realm since models "must be instantiated from the Realm using the realm.createObject() instance method".Edit #2: Okay I have no idea how to use this. Given a list of `Object`, how do I make a `RealmList` of it? Do I have to use Realm.createObject? Is there not any way of just taking a couple already instantiated versions of an object and jamming them into a `RealmList`?
I was really excited about trying this out (the Stack Exchange app currently has a 37ms delay on a cold start to get the list of all of our sites back into active memory) but this does not look like it's going to be easy to use.
Re: Show HN: Realm for Android
#17I'm still very much interested in Realm, and LOVE having a competitor to SQLite. But don't mislead your customers.
[1]: https://news.ycombinator.com/item?id=8043332 where seepel finds SQLite to be more than twice as fast as Realm after that one change to the benchmark.
Re: Show HN: Realm for Android
#18Re: Show HN: Realm for Android
#19It looks like all I/O happens synchronously, which means you generally should not run that on Android's main thread. You could just warp all interactions in AsyncTasks, but that's cumbersome. Do you consider adding an async API with callbacks on the main thread?