Live data from Hacker News

Introducing Realm React Native

realm.io

1–10 of 17 posts

Re: Introducing Realm React Native

#6
post #5

can it be used as a simple key/value store?

Patrick from Realm here. Realm _can_ be used as a key-value store using our primary keys but at the moment it does expect a fixed schema (all of the keys can be optional though). It’d be trivial for us to relax that requirement and we do have dynamic APIs that allows this on Swift/Objective-C/Java. That said, there’s a lot more Realm can do that a K/V store can’t such as query efficiently on arbitrary properties, link objects in a graph, and more. Does that answer your question?

Re: Introducing Realm React Native

#8
post #5

can it be used as a simple key/value store?

Patrick from Realm here. Realm _can_ be used as a key-value store using our primary keys but at the moment it does expect a fixed schema (all of the keys can be optional though). It’d be trivial for us to relax that requirement and we do have dynamic APIs that allows this on Swift/Objective-C/Java. That said, there’s a lot more Realm can do that a K/V store can’t such as query efficiently on arbitrary properties, lin…

Yes -- is there a doc about the graph semantics?

Re: Introducing Realm React Native

#9
post #8

Earlier quoted context omitted.

Patrick from Realm here. Realm _can_ be used as a key-value store using our primary keys but at the moment it does expect a fixed schema (all of the keys can be optional though). It’d be trivial for us to relax that requirement and we do have dynamic APIs that allows this on Swift/Objective-C/Java. That said, there’s a lot more Realm can do that a K/V store can’t such as query efficiently on arbitrary properties, lin…

Yes -- is there a doc about the graph semantics?

You can add any object as a property of another object, and access them via dot notation: https://realm.io/docs/react-native/latest/#object-properties

You can probably find some more advanced examples in our Swift docs https://realm.io/docs/swift/latest/#relationships

We’re barely scratching the surface of this in our query language, which is heavily NSPredicate-inspired, but we might add more OpenCypher-ish features in the future. (And we’d greatly appreciate concrete use-cases or anything else you can share in a GitHub issue to help us prioritize development) https://github.com/realm/realm-js/issues

Re: Introducing Realm React Native

#10
It's too bad that Realm's core technology isn't open source, it would be interesting to see what other immutable databases (e.g. Datomic) would do with the ideas they've come up with. Also grafting Datascript onto Realm for a datalog competitor to sqlite would be sweet.
Post reply on HN