Questions tagged [rethinkdb]

RethinkDB is a scalable, open-source, distributed database system built to store JSON documents. It features a query language that has useful queries like table joins and group by, a highly parallelized architecture, and web tools for managing clusters.

RethinkDB is a scalable, open-source, distributed database system built to store JSON documents. It features a query language that has useful queries like table joins and group by, a highly parallelized architecture, and web tools for managing clusters.

Programming model:

  • JSON data model and immediate consistency
  • Distributed joins, subqueries, aggregation, atomic updates
  • Hadoop-style map/reduce
  • Secondary, compound, and arbitrarily computed indexes.

Administration:

  • Web and command-line adminstration tools
  • Tools to handle machine failure and network interrupts
  • Multi-datacenter replication and failover

Scalability:

  • Sharding and replication to multiple nodes
  • Automatically parallelized and distributed queries
  • Lock-free operation via MVCC concurrency

Useful Links:

Books:

1436 questions
5
votes
1 answer

RethinkDB: Can I group by day / week / month?

My table has a timestamp field, which is a standard RethinkDB date field. Can I group rows by day / week / month using this timestamp field? Couldn't find any examples in the group() docs.
Kludge
  • 2,653
  • 4
  • 20
  • 42
5
votes
2 answers

How to setup rethinkdb with django?

I have followed various posts and tutorials but couldn't find anything that is relevant. I found a ORM for rethinkdb "https://github.com/dparlevliet/rwrapper" but don't know how to use it? I am new to to django and python.
Viking93
  • 51
  • 1
  • 3
5
votes
4 answers

RethinkDB: Is there a way to clone a DB in the same cluster by GUI or rql?

Say I have a DB on my cluster named my_db. Can I clone this DB so that on the same cluster I'll have my_db_cloned without dealing with dump / export?
Kludge
  • 2,653
  • 4
  • 20
  • 42
5
votes
2 answers

RethinkDB: why does rethinkdb service use so much memory?

After encountering situations where I found that rethinkdb service is down for unknown reason, I noticed it uses a lot of memory: # free -m total used free shared buffers cached Mem: 7872 …
Kludge
  • 2,653
  • 4
  • 20
  • 42
5
votes
1 answer

RethinkDB filter and retrieve value from nested array

Using the following query: r.db('somedb').table('sometable')('users') I get the following data from the result: [    [       {          "fn": "dpw",          "u": "usertwo"       },       {          "fn": "dwd",          "u":…
Default
  • 65
  • 2
  • 6
5
votes
2 answers

What is the best way to insert python datetime in rethinkdb?

RethinkDB is a wonderfull and very handy NoSQL Database engine. I looking for the best way to insert Python datetime objects. RethinkDB strores UTC timestamps, so I found a solution to convert my datetime object in the right format. I use this litle…
k3z
  • 538
  • 5
  • 14
5
votes
1 answer

RethinkDB: how to do real upsert - insert new document on update fail?

I want to insert new document on update fail - is there any way to do this? Now RethinkDB allows me only to update document on insert fail via {upsert: true} in insert command.
La Faulx
  • 472
  • 3
  • 10
5
votes
2 answers

Rethinkdb python handle empty result

What is the best technique with rethinkb and python to deal with empty result. I try this, but catching exceptions is not satisfactory. @staticmethod def get_by_mail(mail): try: return User( r.table('users').filter({"mail":…
k3z
  • 538
  • 5
  • 14
5
votes
1 answer

How do I create a compound multi-index in rethinkdb?

I am using Rethinkdb 1.10.1 with the official python driver. I have a table of tagged things which are associated to one user: { "id": "PK", "user_id": "USER_PK", "tags": ["list", "of", "strings"], // Other fields... } I want to…
tawmas
  • 7,443
  • 3
  • 25
  • 24
4
votes
2 answers

Is there any other way to implement a "listening" function without an infinite while loop?

I've been thinking a lot about code and libraries like React that automatically, well, react to events as they happen, and was wondering about how all of that is implemented at the lower levels of C++ and machine code. I can't seem to figure out any…
Min Jun Kim
  • 103
  • 5
4
votes
2 answers

RethinkDB query based on multiple timestamps as secondary indices

I have a RethinkDB with a table 'events', each event has a 'from' and a 'to' column, both are timestamps. I want to mainly query this table by returning all events that are "active" in a time window, meaning the from column is before the end of the…
JoGr
  • 150
  • 1
  • 10
4
votes
1 answer

Is RethinkDB a good fit for a generic Real-time aggregation platform?

I need your help to verify if RethinkDB fits my use case. Use case My team is building a generic Real-time aggregation platform which needs to: join data from a lot of Kafka topics Joins need to be done on raw data Topics have the same key Data in…
4
votes
1 answer

RethinkDB - How to stream data to the browser

Context Greetings, One day I randomly found RethinkDB and I was really fascinated by the whole real-time changes thing. In order to learn how to use this tool I quickly spinned up a container running RethinkDB and i started making a small project. I…
Meletis
  • 95
  • 4
4
votes
0 answers

How do I configure a custom data store for Flask-Security?

I would like to use Flask-Security with RethinkDB, but I cannot get my custom RethinkDBUserDatastore to work properly. Below is the code I've created for the custom data store, plus the adapted example app from the Flask-Security…
Nicholas Tulach
  • 1,023
  • 3
  • 12
  • 35
4
votes
2 answers

Error when launching 'rethinkdb-restore': No such file or director

I am importing DB backup moved on AWS server from my local system While restoring rethink db using command : rethinkdb restore /home/league_ally/rethinkexport.tar.gz Following error is coming: Error when launching 'rethinkdb-restore': No such file…
Ritu Gupta
  • 507
  • 2
  • 8
  • 22