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

How do I handle DB connections on HTTP requests?

Do I open and close a connection to a RethinkDB server on every HTTP request? I was reading a tutorial of the official examples. It describes an Express app and it basically looks like: var app = express(); app.use(openConnection); app.use(/* do…
Amberlamps
  • 39,180
  • 5
  • 43
  • 53
0
votes
2 answers

Create Between Query using gorethink

How to convert this rethinkdb query into gorethink query r.db("arkinventory").table("reportsdata").between(new Date("2012-08-13T23:32:49.923Z"), new Date("2013-08-13T23:32:49.923Z"), {index: "updated_at"}) I tried .Filter(func(row r.Term) r.Term…
Sumit M Asok
  • 2,950
  • 7
  • 29
  • 38
0
votes
2 answers

Error in importing geojson polygon into RethinkDB

I have following geojson polygon JSON that I'd like to import into rethinkDB. I attempted to use following r.geojson approach to import (refer to Building an earthquake map with RethinkDB and…
totoro
  • 195
  • 1
  • 9
0
votes
1 answer

HA Proxy in rethinkdb

I'm trying to implement HA in rethink-db. Rethink-db documentation seems to be quite short, hence can someone here help in understanding How to we achieve HA in rethink-db?
0
votes
1 answer

How can I perform an eqJoin() on a deeply-nested but predictably-placed attribute?

I have a table (db name is libstats, table name is flowcells) full of documents, all of which have a structure like this: { "barcode": "C3W9UACXX", "id": "0021732f-2c42-4e9a-90fd-c68bb0d998dc", "lanes": { …
DeeDee
  • 2,641
  • 2
  • 17
  • 21
0
votes
1 answer

Emit multiple values in RethinkDB map step

I have datasets that consist of arrays and single values { "a": "18", "b": ["x","y","z"] } or arrays and arrays { "a": ["g", "h", "i"], "b": ["x", "y", "z"] } and i plan to map out each combination (like "18-x", "18-y", "18-z"…
Moritz Mahringer
  • 1,240
  • 16
  • 28
0
votes
1 answer

How to get initial documents when calling cursor.changes() with RethinkDB

The docs are explicitly vague about this: http://rethinkdb.com/docs/changefeeds/javascript/ Point changefeeds will always return initial values and have an initializing state; feeds that return changes on unfiltered tables will never return initial…
Chet
  • 18,421
  • 15
  • 69
  • 113
0
votes
0 answers

How to query RethinkDB NoSQL Database from iOS App?

I have a RethinkDB database with a table that contains information that I need in my iOS app. I've been told that I can use JSON and POST requests to submit/download data from the database, but am not sure how to go about doing so. Here's what I…
Kai Banks
  • 5
  • 3
0
votes
2 answers

OR query in rethink

Is it possible to do OR search on values of array in Rethink. Eg: I have table called "post" with field "tags" which is an array. I want to do an OR search on values of tags. post1 { tags : ["young","agreesive"] } post2 { tags :…
0
votes
1 answer

Create RethinkDB table on first getRecord in deepstream.io

I have a deepstream server connected to RethinkDB with the official connector. server.set( 'storage', new RethinkDbConnector({ port: 28015, host: rethinkDbHost, splitChar: '/', defaultTable: 'ds-records' })); There are no tables in the…
Tholle
  • 108,070
  • 19
  • 198
  • 189
0
votes
1 answer

Rethinkdb Query Not Working

I'm doing the following query on Rethinkdb: r.table('skydata').filter(r.row("DeviceID").eq("JBAnFrdlbkcO").and(r.row("TS").ge(0)).and(r.row("TS").le(143556949)) ).orderBy("TS") It worked perfect when run directly on Data Explorer on their website…
J Freebird
  • 3,664
  • 7
  • 46
  • 81
0
votes
1 answer

RethinkDb: Get X entries before given timestamp

I would like to query my RethinkDB with a timestamp, and in return get the first X entries that came before this timestamp. What I've tried so far is the following: r.db('deepstream').table('chat').filter(function (message) { return…
Tholle
  • 108,070
  • 19
  • 198
  • 189
0
votes
1 answer

Multi and compound secondary index with two numbers in RethinkDB

I have documents in an otherwise empty RethinkDB table called numbers below containing nested objects. I create a secondary index, a compound and a multi index, on a pair of numbers inside the inner object. Compound because I want to use 2-element…
Ahmed Fasih
  • 6,458
  • 7
  • 54
  • 95
0
votes
1 answer

Rethinkdb multiple update by one query and conditional

How can I perfom multiple updates with one query and condition, using javascript ? For example, my docs: [ { "Author": "Auto", "Number": 5, "RandomText": "dddbd", "Tag": "Srebro", "id":…
InnerWorld
  • 585
  • 7
  • 26
0
votes
1 answer

Indexing deeply nested fields in RethinkDB

Given a schema like: [ { "id": 1, "name": "Darth", "mylists": [ { "name": "bucket list", "items": [ { "name": "play the harmonica", "done": false } ] }, …
Samuel Goldenbaum
  • 18,391
  • 17
  • 66
  • 104