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
0
votes
1 answer

Multiple Queries same route endpoint in node express

I'm trying to make 2 queries for 2 different tables inside the same endpoint. I can do this for simple get queries, but not for more complex update/replace queries. Also I'm not sure how to properly handle errors in this case. Below is what I…
João Lima
  • 430
  • 1
  • 6
  • 11
0
votes
1 answer

rethinkdb/memsql export table record on trigger to a postgresql table

Is it possible to create a trigger to export a table record from rethinkdb/memsql to a postgresql table, or what might be a proper solution to the latter? The objective to this is to transfer tuples once they have been fully populated to another…
renton
  • 21
  • 1
  • 5
0
votes
1 answer

rethinkDB eq(0) return value is not built-in boolean type?

Can anyone help me?? Why the return value of row['TimeInBucket1'].eq(0) is not True or False???? I Here is the code in python def map1(row): flgTB1 = row['TimeInBucket1'].eq(0) return {'nMX1Pop': 0 if flgTB1 else 1 , …
0
votes
1 answer

Access a function as a value in json object

I have a json object "a1": { "b1": "val1", "b2": "function() {return null}", "c1": "{}" } This function needs to be passed to run a rethink-db query. This function a1.b1 needs to be passed r.db(database).table(table).indexCreate(indexname, a1.b2,…
Puja
  • 17
  • 5
0
votes
1 answer

Rethinkdb replace document if document exists, else insert document

I would like to insert a document if it doesn't exist (client_nr not found). If this exists, replace the whole document with new values. The only other this is, that the client_nr is not the primary key. The primary key is the default id created by…
Big Skinny
  • 53
  • 7
0
votes
1 answer

RethinkDB: Port 8080 does not start after setting up system startup

I followed the guide on RethinkDB Documentation After setting up RethinkDB on system startup on Ubuntu 14.04 server, port 8080 does not start. I checked rethinkdb log. 2015-10-29T18:28:53.207447805 0.086002s notice: Listening for administrative HTTP…
Olalekan
  • 455
  • 6
  • 22
0
votes
2 answers

Rethinkdb, koa, ejs ,angular - realtime update in html

I'm trying to get a real time update in html using Rethinkdb, koa, ejs and angular. something like Rethinkdb main page example streaming rethinkdb results I have looked in a few examples on the web but could not managed to recreate anything with the…
FlikTheDog
  • 11
  • 1
0
votes
2 answers

Error while accessing nested JSON object

This is a sample row in my RethinkDB table. { "a1": "val1" , "a2": "val2" , "a3": "val3" , "a4": "val4" , "part": [ { "id": "reql" , "position": "student" } , { "id": "sdsadda" , "position": "officer" } ] , "a5": …
Puja
  • 17
  • 5
0
votes
3 answers

Rethinkdb append to array if exists

In RethinkDB, I have a table authors with the following layout: { id: 12, videos: [1,2,3] } Now I get new authors with objects like this: { id: 12, videos: [4,5] } If the author now already exists, I want to append the new videos 4 and 5…
vardump
  • 658
  • 1
  • 10
  • 17
0
votes
1 answer

RethinkDB eqJoin + MAP

i have this problem with RethinkDB. I have 3 documents: Person (the account field is an secundary id): { "account": "3580654" , "id": "356ee84a-8eb5-4b9e-8af5-1cf1ebfe556d" , "name": "Jesus", "lastname": "Omilon" } Location…
mijailr
  • 71
  • 1
  • 12
0
votes
1 answer

How do I run a filter on a getNearest() query in RethinkDB?

I have a table with users and their locations saved as r.point datatypes & a geo index set on them. I am trying to run a .getNearest() query, which returns all the users closest to the given user (say, Mr. X). The results return all the users…
GPX
  • 3,506
  • 10
  • 52
  • 69
0
votes
1 answer

Rethinkdb Geospatial: getIntersecting

I have a query that searches through a list of polygons and checks to see if any of a list of points is included. My problem is I need to some how insert a indicator of which polygon the point was found in. Here is my query: function…
0
votes
1 answer

which port uses the rethinkdb client driver? How to set a specific port to listen the rethinkdb client driver?

I have a client host and a different rethinkdb server host. I need to set the firewall rules among this servers related to the rethinkdb client driver. I already know that the rethinkdb server should accept tcp connections in port 28015, but I don't…
nerva13
  • 83
  • 1
  • 4
0
votes
0 answers

How to retrieve data from RethinkDB via Django view?

Am trying to view data from RethinkDB in Django via custom middleware. Below is the middleware code am using to connect to RethinkDB @singleton class rDBMiddleware(object): connection = None def __init__(self): if self.connection == None: …
Satheesh Panduga
  • 818
  • 2
  • 13
  • 32
0
votes
1 answer

Instructions or tutorial on how to access data from Rethink DB in django framework?

I'm searching for the instructions on how to access data from RethinkDB in Django framework but couldn't find in Django official web site. I could install rethinkdb driver in python3.4 using pip, but could find no simple demo on how to use it in the…
Satheesh Panduga
  • 818
  • 2
  • 13
  • 32