Storing data in RethinkDB
RethinkDB (http://www.rethinkdb.com/) is a simple NoSQL database that stores JSON documents. Its main focus lies on ease of use, both for the developer, with an intuitive query language that can simulate table joins, as well as for the administrator, with friendly web tools to monitor, shard, and replicate. Another advantage is its automatic parallelization of queries. At the moment, the database system runs on OS X and a lot of Linux flavors.
We will talk to RethinkDB with a driver available on pub package called rethinkdb_driver
, developed by William Welch (https://github.com/billysometimes/rethinkdb). You can see it in action in the using_rethinkdb
project.
Getting ready
Install the latest production release for your system from http://www.rethinkdb.com/docs/install/. Then, perform the following steps:
- Start the RethinkDB server by issuing the command
rethinkdb
in a terminal. - Then, go to
localhost:8080
in your browser — this starts an administrative UI where...