Realm for Android

Data

embedded mobile database

SHOW HN2014

108points
53comments
#260of 2,272 in 2014
Top 12%of 2014 by points

How HN took it

DebatedReal support and real criticism

13 positive, 12 neutral or asking, 0 mixed, 9 critical, out of 34 comments about the project. Thread score +0.09.

Design: 5 for, 2 againstPerformance: 3 for, 2 againstIdea: 3 for, 1 againstDocs: 0 for, 3 againstExecution: 2 for, 0 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Simpler API than SQLite and ORMs

    From 2 comments
    • Anything that will reduce the API hell that is working with SQLite on Android is worth a second look. Better speed is just icing on the cake.
      Ilios on HN
    • It's great to finally see a serious alternative for data storage on Android, and not just one wrapping SQLite at that. While you may not be completely sold on Realm, competition…
      annoia on HN
  • Competition for Android data storage is welcome

    From 1 comment
    • It's great to finally see a serious alternative for data storage on Android, and not just one wrapping SQLite at that. While you may not be completely sold on Realm, competition…
      annoia on HN
  • Good performance and smaller disk size

    From 1 comment
    • Absolutely. SQLite definitely beats us today on documentation, ecosystem — heck even on stability. Beyond offering a more simple API, we hope to have an edge on performance, data…
      timanglade on HN

Objections

  • Requires setters for every model attribute, no public properties

    From 1 comment
    • Eek so I actually have to make/use a setter for every single attribute of my models? That's definitely a deal breaker for me.
      jc4p on HN
  • Synchronous I/O unsuitable for the Android main thread

    From 1 comment
    • It 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…
      bnr on HN
  • Lacks SQLite's documentation and ecosystem

    From 1 comment
    • Honestly, SQLite has a lot of utilities, tutorials, useful adapters and UI hooks in Android. Core Data similarly on iOS. If you want me to go to your framework instead, you'd…
      lnanek2 on HN
  • Benchmarks did not reuse compiled statements at first

    From 1 comment
    • Given the insert speeds, I'm guessing they're (still) not reusing compiled statements. I mentioned this last time I saw Realm on the front page[1], but their benchmarks are…
      Groxx on HN
  • Gradle plugin and Java version setup problems in docs

    From 2 comments
    • Just as a heads up your documentation doesn't work with the newest version of the Android Gradle plugin (0.13.0), see here: http://stackoverflow.com/a/25939518/472021 the…
      jc4p on HN
    • Your JavaDocs miss a rather important information that Java SDK needs to be switched from 1.6 to at least 1.7 (in Android Studio, under Project Settings) for the thing to work!…
      V-2 on HN

Requests

  • Easy JSON import into RealmObjects

    From 2 comments
    • Just as a heads up your documentation doesn't work with the newest version of the Android Gradle plugin (0.13.0), see here: http://stackoverflow.com/a/25939518/472021 the…
      jc4p on HN
    • I was trying to add in a Realm test to a benchmarking project I already have set up to see how quickly I can retrieve a list of Stack Exchange sites from disk/db/etc, the Site…
      jc4p on HN
  • Async API with callbacks

    From 1 comment
    • It 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…
      bnr on HN
  • Windows, .NET and Xamarin support

    From 2 comments
    • I'm using Realm on iOS at the moment for a reasonably large application. I originally had a C cross-platform core based on SQLite, but I found it too difficult to maintain and…
      pm on HN
    • What about Xamarin?
      cwyers on HN
  • Phonegap support

    From 1 comment
  • Network sync

    From 1 comment
    • Honestly, SQLite has a lot of utilities, tutorials, useful adapters and UI hooks in Android. Core Data similarly on iOS. If you want me to go to your framework instead, you'd…
      lnanek2 on HN

Questions

  • Why build a new database instead of an ORM on SQLite

    From 1 comment
    • So you actually _do_ provide your own db then? I'd love to know a bit more about this. What drove the decision to roll your own? Seeing as how SQLite is pretty mature and widely…
      pdpi on HN
  • How to keep Realm objects across configuration changes

    From 1 comment
    • I've always wondered how folks handle the Parcelable[1] interface with libraries like this. If you have a realm object that you want to have in memory between activity…
      zackb on HN
  • Where the 20,000 iOS users estimate comes from

    From 1 comment
    • Where does the 20,000 iOS users stat come from? I think it's really cool what Realm is doing.
      orta on HN

Alternatives named

  • SQLite

    From 2 comments
    • Honestly, SQLite has a lot of utilities, tutorials, useful adapters and UI hooks in Android. Core Data similarly on iOS. If you want me to go to your framework instead, you'd…
      lnanek2 on HN
    • Anything that will reduce the API hell that is working with SQLite on Android is worth a second look. Better speed is just icing on the cake.
      Ilios on HN
  • ActiveAndroid

    From 1 comment
    • If 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.
      hayksaakian on HN
  • Core Data

    From 1 comment
    • Honestly, SQLite has a lot of utilities, tutorials, useful adapters and UI hooks in Android. Core Data similarly on iOS. If you want me to go to your framework instead, you'd…
      lnanek2 on HN
  • Couchbase Lite

    From 1 comment
    • It's good to see more options for mobile data. If you're interested in an open source database that handles the network for you, Couchbase Lite syncs using an Apache CouchDB…
      jchrisa on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/8388935)