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

Live search using socket.io

How can I create live search using socket.io? I use RethinkDB + Node + Express + Socket.io + Redux + React, I am listening to event (it is changefeed created using rethinkdb), which sends me lets say 10 items on client side and displaying them using…
stpoa
  • 5,223
  • 2
  • 14
  • 26
3
votes
1 answer

Allow user to only access specific data in a RethinkDB table

I am implementing an application (HTML and AngularJS) that uses RethinkDB to store data. Basically, anyone can get the RethinkDB connection credentials from the .js file. So how can I allow the user to only get their own data? In the RethinkDB…
Nabeel
  • 557
  • 4
  • 15
3
votes
3 answers

How to manage multiple user changefeeds with RethinkDB in node.js app

I need some advice on how to handle using rethinkDb's change-feeds for multiple users in my node.js app. Essentially I want when a user logs into our web app, I want to set up a change-feed for that particular user to monitor changes to a…
3
votes
1 answer

RethinkDb OrderBy Before Filter, Performance

The data table is the biggest table in my db. I would like to query the db and then order it by the entries timestamps. Common sense would be to filter first and then manipulate the data. queryA =…
Andi Giga
  • 3,744
  • 9
  • 38
  • 68
3
votes
1 answer

Rethinkdb query always returns null Eventhough data is existed?

I am new to rethinkDB,I am trying to find data by username using filter function. But rethinkDB returns null eventhough data existed. //Define Your Api//Define Your Api import express from 'express'; import r from 'rethinkdb'; const router =…
Nane
  • 2,370
  • 6
  • 34
  • 74
3
votes
1 answer

Rethinkdb execute multiple avg in one query

I have a review table with multiple number columns. I would like to count he avg of all columns in one query. So if the table looks like: { foo : 2, bar : 5, foobar : 10 }, { foo : 4, bar : 3, foobar : 12 } then i would like to…
John
  • 43
  • 4
3
votes
2 answers

How to prevent RethinkDB from creating test database

When you launch a rethinkdb instance, it will automatically create a database called 'test'. When you run multiple instances and cluster them using rethinkdb proxy this leads to the issue: Database name conflict: test is the name of more than one…
nardeas
  • 633
  • 6
  • 14
3
votes
2 answers

How to pretty print dictionaries in iPython

I'm currently using RethinkDB, which has a nice web UI with a Data Explorer which allows the user to print out the contents of the database like this: Note that each key-value pair starts on a new line, and the keys and values (mostly) have…
Kurt Peek
  • 52,165
  • 91
  • 301
  • 526
3
votes
5 answers

How to determine which process is using a port in Linux

I'm currently running RethinkDB on its default port, because if I point my browser to localhost:8080 I see the RethinkDB web interface: I'd like to close RethinkDB and re-open it on another port using the --port-offset argument. However, so far I…
Kurt Peek
  • 52,165
  • 91
  • 301
  • 526
3
votes
1 answer

DraftJS Uncaught TypeError: Cannot read property 'blocks' of undefined

I'm trying to read data from database and then render to the DOM via react. For the input, I used draft.js and run convertToRaw on it before saving to the db. However, when I run convertFromRaw and render, I get this error in the console: "Uncaught…
ohenecoker
  • 81
  • 1
  • 6
3
votes
1 answer

How do I change the primary key in a rethinkdb document?

Based on the RethinkDB replace() docs I am trying to change the primary key of a document. In this case, the primary key is email: var renamePerson = function(originalEmail, newEmail, cb){ …
mikemaccana
  • 110,530
  • 99
  • 389
  • 494
3
votes
1 answer

"rethinkdb.errors.ReqlServerCompileError: Expected 2 arguments but found 1 in:" when trying to .update() with Python rethink

I'm working with RethinkDB using the Python module and right now I'm trying to update a model with this statement: results = rethink.table(model + "s").filter(id=results["id"]).update(data).run(g.rdb_conn) model is something being defined earlier…
RPiAwesomeness
  • 5,009
  • 10
  • 34
  • 52
3
votes
0 answers

How to connect a Phoenix app with RethinkDB Ecto adapter?

I'm trying to create a new Phoenix app using RethinkDB as the database and RethinkDB_Ecto as the adapter. I've created the app and followed the instructions on GitHub: https://github.com/almightycouch/rethinkdb_ecto My mix.exs: def application do …
Hugo Carlos
  • 401
  • 3
  • 22
3
votes
2 answers

is rethinkdb horizon well suited for a rest api web service?

I see that rethinkdb now has an app server called horizon and it's examples include a lot of client apps without any backend server code. If I wanted to create a REST api service with rethinkdb - does horizon still add value or should I just create…
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
3
votes
3 answers

How to stop a goroutine that is listening for RethinkDB changefeeds?

I am trying to figure out how to use RethinkDB changefeeds with golang. My specific question is how to stop a goroutine that listens for changes to the database. See, for example, the function getData() below. I run this from a handler function by…
Curious2learn
  • 31,692
  • 43
  • 108
  • 125