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.
1,435
questions
0
votes
0
answers
7
views
Rethinkdb random server crashes
I have managed to set up the rethinkdb server on ubuntu 20, I have set up using the standard tutorials, and rethink dB runs as a service. I have noticed or am experiencing this problem the server ...
-1
votes
0
answers
11
views
RethinkDB eqJoin to MongoDB
hope you're doing well. Simple question hopefully but, I am trying to convert a RethinkDB "eqJoin" and "zip" query to MongoDB, using the MongoDB aggregation pipeline.
Suppose there ...
1
vote
0
answers
26
views
Live queries implementation / aproaches in backend
I am working on think, which should be "live". I.e. use web-sockets or SSE to show current data in browser. Source of my data are two and they should be combined with a bit of business logic....
0
votes
0
answers
28
views
FLUTTER RETHINKDB REMOTE CONNECTION
I am trying to use rethninkDb from my flutter app, below is my code to connect to rethinkDb installed on a VPS with UBUNTU 18.4.
RethinkDb is fully istalled et ADMIN interface is working fine, i can ...
0
votes
1
answer
14
views
How to delete a set of data based on group in RethinkDB with Python
I have a table with musical instruments and I want to split them by category count their number and if a category groups is larger than a number delete all the instruments in that group. My code ...
0
votes
1
answer
15
views
How to check if table exists in RethinkDB with Python
I wish to check if a table already exists in RethinkDB with the python client before trying to create the table. If you try to create the table and it exists it throws an error. So how can I check ...
0
votes
0
answers
15
views
Rethinkdb: Can I replace an entire table?
I'd like to retrieve data from MySQL and feed it to Rethinkdb for clients listening to changes. Can I just replace an entire table with the new results, with clients getting any removed, new, or ...
1
vote
1
answer
23
views
RethinkDB r.DBList() gives blank object in return
I'm using this golang code to check list of databases in RethinkDB, and getting no lists in return.
package main
import (
"encoding/json"
"fmt"
"log"
r &...
2
votes
1
answer
67
views
Issue with connecting to rethinkdb from Windows 11 via thinky (nodejs)
I'm trying to onboard a new developer, that is using Windows 11 as the only one on our small team. I've guided him through installing WSL2 and Ubuntu 20.04.3 LTS (linux kernel: 5.10.93.2-microsoft-...
1
vote
0
answers
60
views
RethinkDB: Update multiple array entries using ReQL with high performance
Inside a single document of my table, I'm trying to achieve an update of several entries of an array with high performance.
The array is around 20k entries, and I'm trying to merge 5k element changes.
...
0
votes
0
answers
6
views
rethinkdb - 2 nodes on separate servers config file example
I'm trying to setup a two node system on separate linux servers. Based on the start multiple
instances documentation they are running the bind all switch when starting rethinkdb on the
primary server. ...
0
votes
0
answers
12
views
Reql : how to achieve multiple aggregation on the same column in rethinkDb table
Am trying to achieve something like this in Reql, which we do in sql
Select column1,
max(column2) as maxvalue, min(column2) as minvalue, avg(column2) as avgvlaue
from table
group by coulm1
0
votes
0
answers
49
views
macOS python command line stopped working. cannot pickle '_thread._local'
I updated macOS recently and "/usr/local/bin/rethinkdb restore" now no longer works..
/usr/local/bin/rethinkdb restore --force /Users/rob/rdb_backup.tar.gz
Extracting archive file...
Done (...
0
votes
1
answer
25
views
RethinkDB branch / do + "Argument 1 to deleteAt may not be `undefined`."
I am trying to write some somewhat complicated ReQL that deletes a single value from an array in a field, or deletes the record entirely if that value is the only one in the array.
I thought I had ...
0
votes
0
answers
18
views
How do I get all the fields of a particular table entry in rethinkdb when performing concatMap?
{
"createdAt": 1641979915,
"date": 1642051802,
"id": "1c31bc8a-a4f9-4984-af87-3a523b9003a5",
"orgId": "caf2f08f-d7c8-44b6-8489-...
1
vote
1
answer
25
views
How to rename table name in RethinkDb
how to rename table name in rethinkdb for example r.db("rethinkdb").table("data").get("emp100") I want to change emp100 to emp200. how to change that name in rethindb?
0
votes
0
answers
17
views
How to run the query on a connection to RethinkDb with runNoReply option in C#
In the documentation there is a working example for runNoReply option in Java API.
https://rethinkdb.com/api/java/run_noreply/#description
I'm looking for the same option in the C# library https://...
1
vote
1
answer
58
views
NodeJS and RethinkDB - How to handle connection interruption (connection retry) when listening for table changes (realtime)?
ReqlRuntimeError: Connection is closed in:
r.table("users").changes()
^^^^^^^^^^^^^^^^^^^^^^^^^^
at ReqlRuntimeError.ReqlError [as constructor] (/home/user/DEV/express-socketio/...
1
vote
1
answer
99
views
Embed RethinkDB into Electron (or NodeJS) app
I'm building an Electron app, specifically a crypto-currency wallet, so I need all the information stored locally on the user's machine and should not be synced to any server.
I like RethinkDB and ...
0
votes
0
answers
46
views
How to convert this query into rethinkdb?
I'm stuck to convert this postgresql query to gorethink can you help me ?
I would like to get a json as follow as result: {"running": "true"}
_, err = tx.Select(
"...
0
votes
1
answer
24
views
rethinkdb python eqJoin with filter not working
I have two tables records
[
{
"payload": {
"uuid": "123",
"version": "1.0.0"
},
"record_id":"rec-123"
}...
0
votes
1
answer
56
views
How to unwind/merge arrays from hierarchical document structure?
I have a nested document structure and I am able to filter it with pluck to show the relevant parts:
Is there an elegant way to merge all entries of the last level to a single array?
Expected result (...
0
votes
0
answers
23
views
Rethinkdb - withFields returning empty data
Sample Data
Here is what I am trying:
r.db("betpay").table("receiver").withFields({Fixture: {Sport: { Name: "American Football" }} })
0
votes
1
answer
66
views
Rethinkbd changefeeds for flutter dart
I am using rethinkdb in my app. I can insert and retrieve data using the "rethink_db_ns" package. But I need to get data in real-time. for that, I am using This method
Future<void> ...
0
votes
1
answer
44
views
Fetch records by multiple indexes
What is the most efficient way to get all records by two indexes?
Lets say we have two secondary indexes, end_block_num and public_key and the values bellow:
end_block_num = 1000
public_key = "...
0
votes
1
answer
39
views
rethinkDB getAll() changes the order of the table
I started using rethinkDB.
When I call up the elements of a table with getAll, the order of the table is unfortunately changed, for example: [6,2,4,5] -> [2,4,5,6]
How can I use getAll () without ...
0
votes
1
answer
40
views
Cannot connect to DeepStream Node.js server if using any custom plugins
So, if I use my DeepStream server as the following
const {Deepstream} = require('@deepstream/server')
const server = new Deepstream({
server.start()
it's working just fine I can connect to it from ...
0
votes
1
answer
60
views
Should create new RethinkDB connection for every query?
Java + RethinkDB.
Should we create new RethinkDB connection for each query and then close the connection?
Or just create one creation and use it for all the queries?
What should be the best approach?
0
votes
0
answers
27
views
Update nested object property RethinkDB
I use rethinkDb for chat application.
My question is how can I update nested object property in rethinkDb.
This is my structure:
[
{
"groupId": "group1",
"...
0
votes
1
answer
21
views
Merge subarrays and sort
I have ReQL query
r.table('production_plan')
.filter(doc => doc.hasFields('messages'))
.pluck('id', 'nomer','diameter', {'messages': ['date', 'text','username']})
with results
{
&...
0
votes
0
answers
29
views
Manage rethinkdb connection in flask
I found two ways to manage rethinkdb connections in python flask.
The first one as mentioned in the todo example is using the using Flask's @app.before_request and @app.teardown_request
The second one ...
0
votes
0
answers
56
views
Proper way to connect to rethinkdb in Python
As mentioned in this post, connecting to rethinkdb via Python changed from :
import rethinkdb as r
r.connect()
to:
import rethinkdb as r
rdb = r.RethinkDB()
rdb.connect()
I figured out that we can ...
2
votes
0
answers
37
views
rethinkDB: get first key name in an object
I'm just starting with rethinkDB query lang and don't understand how to select the first key (name).
In this case I would be the object notes.
I did it with Object.keys(t)[0]; tries that just returns ...
0
votes
0
answers
39
views
Regarding RethinkDB database
I am using rethinkdb with my flutter app for various user services but when I am running text cases the code does not give any output and shows error.
These are the errors that I get when I run the ...
0
votes
1
answer
25
views
Regarding connection class in RethinkDb
I am not able to understand why am I getting this error stating that connection of type Connection is not initialized if anyone could help me out with it.
enter image description here
0
votes
1
answer
28
views
RethinkDB: join table with array of keys
I have table users like
[
{
"id": "1" ,
"name": "John",
"groups": ["1", "2"]
}
{
&...
0
votes
0
answers
23
views
PHP - RethinkDB giving me "Failed to load:" error
UPDATE: Okay, so the issue is the \r\epochTime(),
When I remove this, it works fine without errors.
Any ideas?
I switched to rethinkdb about a month ago now and have a project currently running, using ...
0
votes
1
answer
40
views
How to connect to a rethink db hosted on centos?
I have my rethink db hosted in centos and proxied port 8080 to a domain name using nginx.
From my local pc, how do I connect my app to the server?
0
votes
1
answer
20
views
Get RethinkDB query working in Ruby on Rails
I have a ReQL query...
r.db('development').table('responses').filter({
survey_id: 9
}).concatMap(r.row.getField('numerical_answers')).filter({
type: 'CustomerEffortAnswer'
}).sum('number')
......
0
votes
1
answer
50
views
How can I Filter Data in RethinkDB using C# Driver?
Trying to use Filter to get emotion data from my rethinkdb but using the C# Driver
The data i want to have
Can't seem to find out how this works in the C# Driver
This is the command in the data ...
0
votes
0
answers
29
views
PHP - RethinkDB eachPOS time giving 1 hour behind after clocks went forward
So the clocks went back over the weekend..my code was working perfectly.
My issue is that due to the clocks going forward, the server seems to display for example 1 hour ago, when it was created in ...
0
votes
1
answer
41
views
How to chain RethinkDB filters in PHP
I'm needing to create more than 1 filter to run a query to cut down the number of results found.
I am trying to do these 3 queries at once using RethinkDB for php found here
The code I am running is:
...
0
votes
1
answer
45
views
Filtering database entries by Author & between unix timestamp
I've been stuck on trying to find a way to get all database entries from a specific author ID and between 2 timestamps. I've tried reading the documentation and messing around with the ways ...
0
votes
1
answer
48
views
get all items that have match with other array
I'm creating a query but i came a section when i don't have idea that how do it. I have one array that have for example two items
//filter array
const filterArray=r.expr(['parking', 'pool'])
and also ...
1
vote
1
answer
274
views
Nodejs - rethinkdb Unhandled rejection ReqlDriverError: First argument to `run` must be an open connection
Run simple code as per official document, but getting error
const r = require('rethinkdb');
var connection = null;
r.connect( {host: 'localhost', port: 28015}, function(err, conn) {
if ...
2
votes
1
answer
92
views
Using secondary index for .lt() with .filter() in RethinkDB
Currently trying to solve a problem by using RethinkDB to find those objects which has a createdAt date key with less than the given value by using .lt().
The following query works just fine with ....
2
votes
1
answer
2k
views
How to setup Docker Compose without a Dockerfile?
I have spend the last few hours trying to setup 2 default images of nodejs 14 and rethinkdb 2.3.5, so sorry if the tone is a little frustrated but I am currently frustrated.
My requirements are ...
2
votes
0
answers
84
views
Restore RethinkDB backup on MacOS Big Sur
My local Rethink database disappeared after upgrading to MacOS 11 (“Big Sur”). But that's alright, as I have a backup. But I can't, for the life of me, restore it.
rethinkdb restore [file] and ...
2
votes
0
answers
137
views
RethinkDB 2.4.1 windows build
I'm trying to build the rethinkdb in windows using cygwin. Config runs ok, but making the v8 depedency fails. Anybody more lucky?
Error: open /cygdrive/c/rtdb/rethinkdb-2.4.1/external/v8_4.7.80.23....