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:

1417 questions
10
votes
2 answers

Testing Promises with multiple thens using testdoublejs

I am using testdouble for stubbing calls within my node.js project. This particular function is wrapping a promise and has multiple then calls within the function itself. function getUser (rethink, username) { return new Promise((resolve, reject)…
ckross01
  • 1,601
  • 2
  • 17
  • 25
10
votes
1 answer

How to rename a database in RethinkDB

On the api documentation page rethinkdb.com/api/javascript I can only find commands to create, drop and list databases. But how I can I rename a database in RethinkDB?
adius
  • 10,199
  • 5
  • 35
  • 40
10
votes
1 answer

How to join tables with a array of IDs

Attempting to use this example to join on an array of IDs: https://github.com/rethinkdb/rethinkdb/issues/1533#issuecomment-26112118 Stores table snippet { "storeID": "80362c86-94cc-4be3-b2b0-2607901804dd", "locations": [ …
Dustin Brownell
  • 807
  • 7
  • 10
9
votes
1 answer

RethinkDB - Find documents with missing field

I'm trying to write the most optimal query to find all of the documents that do not have a specific field. Is there any better way to do this than the examples I have listed below? // Get the ids of all documents missing…
ambient
  • 2,646
  • 3
  • 14
  • 23
9
votes
1 answer

Easiest way to copy/duplicate a RethinkDB database?

How can I easily duplicate my production database (mydb) to create a dev database (mydb-dev)? The rethinkdb restore command seems to have no option to specify the name of the output database. It only has the option to select which database I'd like…
3k-
  • 2,077
  • 2
  • 21
  • 24
9
votes
1 answer

How to use getall with orderby in RethinkDB

i want to list records where id=1 between two timestamps and finally order them according to timestamp. Mysql query something: Select * from test where (timestamp between 100099323 AND 1423699323) AND id=1 order by timestamp there are more than 5…
amit
  • 869
  • 6
  • 16
9
votes
4 answers

rql get multiple documents from list of keys rethinkdb in javascript

I have a table of "person" data, which has a unique key "id". I have a list of id's that I want to get the data for which I'll be sending as a JSON array from the client to the server. The serve recieves that data as a JSON array. Now is there a…
CamHart
  • 2,998
  • 3
  • 24
  • 55
8
votes
1 answer

Time pseudotype instead of ISO8601 when using group operator

I'm getting started with RethinkDB and I'm having some trouble understanding what's going on with some queries I'm running. The problem is querying objects with date time types from a NodeJS app (using the rethinkdbdash driver) which exposes a JSON…
Marc
  • 213
  • 2
  • 11
8
votes
1 answer

Querying array of nested objects

Say I have this JSON (sample - a real-life example can be found at apple itunes rss feed) stored in a RethinkDB table called 'test': { "feed": { "entry": [ { "title": { "label": "Some super…
codeclash
  • 2,023
  • 19
  • 17
8
votes
1 answer

RethinkDB: iterating over object properties

I have the following data structure: wall { slug: "wall-slug", nodes: { "node1": "id-from-nodes-table-1", "node2": "id-from-nodes-table-2" } } nodes { id: "id-from-nodes-table-1", something: "something" } Trying…
La Faulx
  • 462
  • 3
  • 10
8
votes
2 answers

RethinkDB multiple queries in a single request

I'm trying to execute several RQL commands in a single request to server, without much success I may add. I have tried r.union, but it only works with sequences. What I really want: [r.db(..).table(..).get(id1).delete(), …
PJK
  • 2,012
  • 3
  • 17
  • 26
8
votes
1 answer

Can RethinkDB handle large data sets (TB+) and serve as DB for an OLAP app?

Can RethinkDB handle large data sets (i.e. multiple tera bytes ) effectively to serve as DB for an analytics application ?
JE42
  • 4,152
  • 4
  • 36
  • 48
8
votes
4 answers

RethinkDB index for filter + orderby

Lets say a comments table has the following structure: id | author | timestamp | body I want to use index for efficiently execute the following query: r.table('comments').getAll("me", {index: "author"}).orderBy('timestamp').run(conn, callback) Is…
Robert Zaremba
  • 6,780
  • 6
  • 40
  • 71
8
votes
2 answers

How to add Username and Password to Rethinkdb connection?

How to add username and password to rethinkdb connection? In my network there are 100 plus machines. Out which only 2 machines are under my control. Out of 2, one is virtual machine and one is physical machine. If i run rethinkdb on virtual machine…
ekanna
  • 4,392
  • 8
  • 23
  • 29
7
votes
1 answer

What is the maximum number of connections?

Since the native RethinkDB drivers do not support connection pooling yet, I was wondering, what is the maximum number of connections to the RethinkDB server?
Amberlamps
  • 32,084
  • 5
  • 34
  • 50
1
2
3
94 95