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

Rethinkdb: Calculate tag occurrence per user

My table contains documents that look like this: [{ user: { key: '100' }, product: { name: 'Product 1', tags: [ 'tag1', 'tag2' ], } }, { user: { key: '100' }, product: { name: 'Product 1', tags: [ 'tag1', 'tag3'…
xpepermint
  • 35,055
  • 30
  • 109
  • 163
0
votes
1 answer

Rethinkdb return of function

I have following function: function test(room_number, user_id) { return r.table('wins').filter({"room_number": room_number, "user_id" : user_id}).count().run(connection, function(err, cursor){ // I get the right result …
markus_springer
  • 174
  • 1
  • 8
0
votes
2 answers

Getting data from rethinkdb database, manipulating said data, then updating the database with the manipulated docs

I am looking to do a get, run a function on the results which will do some manipulation by updating a field, and then put that doc back into the database. Really my issue is being able to chain together multiple DB calls. I have been struggling with…
Garrett
  • 699
  • 5
  • 19
0
votes
1 answer

Getting actual field value inside replace(function() {}) in RethinkDB

I am stuck trying to update to all entries I have saved in a RethinkDB table. Basically, I am trying to loop over all entries, read a property and save the processed result back to the same document as a new property. I am using…
AndersW
  • 58
  • 7
0
votes
2 answers

How can I descending sort a grouping based on the count of the reduction array in rethinkdb

Importing this dataset as a table: https://data.cityofnewyork.us/Housing-Development/Registration-Contacts/feu5-w2e2#revert I use the following query to perform an aggregation and then attempt to sort in descending order based on the reduction…
Barry G
  • 221
  • 4
  • 14
0
votes
0 answers

How to improve the performance of the query

r.db('DB').table('TB').group('message').map(function(doc){ return { count: 1, from: doc('timestamp'), to: doc('timestamp'), browsers: r([doc('ua')('family')]) } }).reduce(function(left, right){ return { count:…
Codinfox
  • 540
  • 5
  • 18
0
votes
1 answer

rethinkdb aggregation based on sequence items

I'm currently going through the rethinkdb python tutorial. Currently, I have 4 superheroes. In the example below, heroes is an alias for r.db("python_tutorial").table("heroes"). In[45]: list(heroes.run()) Out[44]: [{u'appearances_count': 98, …
Games Brainiac
  • 80,178
  • 33
  • 141
  • 199
0
votes
1 answer

RethinkDB text search?

I am trying to study some rethinkdb for my next project. My backend is in Haskell and rethink db haskell driver looks a bit better then mongodb. So I want to try it. My question is how do you do simple text search with rethinkdb? Nothing too…
r.sendecky
  • 9,933
  • 9
  • 34
  • 62
0
votes
2 answers

How to check the type of a field before checking the value in rethinkdb?

I have few tables in rethinkdb with very varied datasets. Mostly because over time, out of simple string properties complex objects were created to be more expressive. When I run a query, I'm making sure that all fields exist, with the hasFields -…
peter
  • 14,348
  • 9
  • 62
  • 96
0
votes
0 answers

use environment variable to look for HTTPAddresses

I am trying to use an environment variable to not set the "http address", because the IP address may change while use to AWS machine. How can I use an environment variable where it find the HTTPAddresses? Here I use the localhost address but at AWS…
Istiak Mahmood
  • 2,330
  • 8
  • 31
  • 73
0
votes
1 answer

Python, rethinkDB: progress of multiple inserts not displayed

I am inserting roughly 10k documents from a CSV file into a rethinkDB table; the code looks like this print "inserting records", with open('input.csv', 'rb') as csvfile: reader = csv.reader(csvfile, delimiter=',') for row in reader: …
FLIR31207
  • 73
  • 1
  • 7
0
votes
1 answer

filter, sum and div in rethinkdb query

how can i join these two query together ... i mean get the CTR for certain amount of time...i have tried different way to solve it but couldn't find any way to write the query in…
Istiak Mahmood
  • 2,330
  • 8
  • 31
  • 73
0
votes
1 answer

RethinkDB: How can I perform sum of 2 columns and divide it in one query and also without mapping?

I want to perform this and get the divided result as output, but I get an error. I have tried this RethinkDB query: r.object( "total_page_loads", r.table("test_db")("page_loads").sum(), "total_clicks", …
Istiak Mahmood
  • 2,330
  • 8
  • 31
  • 73
0
votes
1 answer

The nosql database most similar to Rethinkdb

I need to do a project in rethinkdb. However, it can not work in windows. Is there a database that is seen to be most similar so that i can learn the ropes and then start my project in a unix environment. I heard this could be mongodb or couchdb.…
user4542931
0
votes
1 answer

How to get resource utilized by rethinkdb?

Is there easy way to get information, like total database size, cache used and so on in rethinkdb?
user2737980
  • 233
  • 5
  • 13