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

Filter to match array exactly

My documents contain an array, for example; { "a": [ 2, 3 ], "id": ... } I want to return only the documents for which a contains only the elements 2 and 3. This is the simplest I've found…
Dagrada
  • 1,135
  • 12
  • 22
0
votes
1 answer

Rethinkdb atomic retrieve and update

Say I have the following data structure: { "name": "i1", "time": 1, "status": 1} { "name": "i2", "time": 2, "status": 1} { "name": "i3", "time": 3, "status": 1} { "name": "i4", "time": 4, "status": 2} I need to retrieve the item with the largest…
sanyi
  • 5,999
  • 2
  • 19
  • 30
0
votes
1 answer

Fetch partial document

Is it possible to fetch specific parts of a document in RethinkDB? For instance: // Doesn't retrieve the password field r.db("test").get("some-id", { "password": false }).run() I'm looking for a feature that is similar to how the projection…
GlurG
  • 237
  • 2
  • 10
0
votes
1 answer

Elastic search curl query not working

Im trying to run the following search query in Elastic Search using a Curl: curl -XGET 'http://localhost:9200/db/table_one/_search?q=Summary:None' I keep getting the following error: {"error":"SearchPhaseExecutionException[Failed to execute phase…
ashwin shanker
  • 303
  • 1
  • 7
  • 20
0
votes
1 answer

Document concurrent update

I have a document like: { owner: 'alex', live: 'some guid' } Two or more users can update live field simultaneously. How can I make sure that only the first user wins and others updates fails?
Aler
  • 15,097
  • 6
  • 23
  • 26
0
votes
1 answer

How to pipe a node stream into a RethinkDB table

Is there any convenient way to pipe a NodeJS stream into a RethinkDB table? I'm thinking something similar to this for PostgreSQL: pg.connect(function(err, client, done) { var stream = client.query(copyFrom('COPY my_table FROM STDIN')); var…
Pensierinmusica
  • 6,404
  • 9
  • 40
  • 58
0
votes
1 answer

Funnels and RethinkDB

I have some steps saved in RethinkDB like this : { date: "Sat Feb 06 2015 00:00:00 GMT+00:00", step: 1 }, { date: "Sat Feb 06 2015 11:11:11 GMT+00:00", step: 3 }, { date: "Sat Feb 06 2015 22:22:22 GMT+00:00", step: 2 } I'd like to count the…
Adrien
  • 1
  • 2
0
votes
1 answer

rethinkdb: group documents by price range

I want to group documents in rethinkdb by price range (0-100, 100-200, 200-300, and so on), instead of a single price value. How do I do that?
tldr
  • 11,924
  • 15
  • 75
  • 120
0
votes
1 answer

RethinkDB: custom scoring (like Elasticsearch)

I recently discovered RethinkDB, and find it's query language to be much simpler than Elasticsearch. The only use case I haven't been able to find a solution for is specifying how to score results based on the document's fields, like you can do in…
tldr
  • 11,924
  • 15
  • 75
  • 120
0
votes
1 answer

Is it possible to get a RethinkDB document only knowing the UUID (no table)?

If UUIDs are unique across RethinkDB, I was wondering whether you could get a document having only its UUID, without knowing the table it resides in. I am thinking of something like: r.db('test').get('[UUID]').run()
linkyndy
  • 17,038
  • 20
  • 114
  • 194
0
votes
2 answers

Count the different variables in an array in my document

I'm trying out rethinkDB and playing around with some query to see if it could fit by use case. So far, so good. However, I have a question regarding reQL. For example in this case I store analytics events in rethinkDB such as: [{ "userId":…
Syl
  • 1,164
  • 2
  • 14
  • 23
0
votes
1 answer

RethinkDB - Using getNearest() with eqJoin()

This works as expected, get all "check ins" at a location r.table('places').eqJoin('checkinId', r.table('checkins')) And this works as expected, get all locations near a point. r.table('places').getNearest(r.point(-122.1634581999,47.7542651), {…
Dustin Brownell
  • 817
  • 7
  • 10
0
votes
0 answers

Python patch method from another module

I need to add some extra functionality to RethinkDB's run() method. Here's what I've come up with: from rethinkdb.ast import RqlQuery class ExtendedRqlQuery(RqlQuery): def run(self, c=None, **global_optargs): if not c: with…
linkyndy
  • 17,038
  • 20
  • 114
  • 194
0
votes
1 answer

How do you secure individual databases in RethinkDB?

I know we can secure the driver port using an authentication key, but how can we secure individual databases? http://www.rethinkdb.com/docs/security/
Samuel Goldenbaum
  • 18,391
  • 17
  • 66
  • 104
0
votes
1 answer

I can pull data from thinky.io but I can not get the data out

My userProfileController.js result is undefined var UserProfileSerice = require('../../Services/User/UserProfileService.js'); module.exports = function(app){ app.get('/tester' , ensureAuthenticated, function(req, res){ var sonuc ; …
slmkrnz
  • 23
  • 1
  • 4