RethinkDB

RethinkDB is a document-oriented database similar to MongoDB but aims to overcome scalability and practical limitation of the latter. RethinkDB is built to store JSON documents, and scale to multiple machines with very little effort. It has a pleasant query language that supports queries such as table joins and group by. It is easy to setup and learn. For more detailed information, see the official homepage.

Installation

Install rethinkdbAUR from the official repositories.

Create and set user rights for RethinkDB folder:

# mkdir /var/lib/rethinkdb/default
# chown -R rethinkdb:rethinkdb /var/lib/rethinkdb/

Now you can start rethinkdb from the command-line:

# rethinkdb

Alternatively, start and enable rethinkdb@default.

RethinkDB's admin UI is now available on port 8080.

Configuration

RethinkDB has multi-instance support, which means you can run several independent database instances on the same machine. The systemd service also supports multi-instance configuration.

To create a new RethinkDB instance, create its configuration file:

# cd /etc/rethinkdb
# cp instances.d/default.conf instances.d/Name.conf

where Name represents the configuration you will be using later. Change the configuration options in the new file. Then start/enable rethinkdb@Name.service.

The 'default' instance is created at installation time for your convenience. Its data is stored in /var/lib/rethinkdb/default.

gollark: You can use `table.concat(contents, "\n")` to convert contents to a string.
gollark: - applications will have trouble using it since with your system they could only draw to both in the same way
gollark: Trouble with that is:- term.redirect won't provide it on `term`- stuff will need special modification anyway
gollark: How do you plan to handle the monitor and terminal having different sizes?
gollark: Except you'd run into problems with the different sizez.
This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.