Python driver for RethinkDB
Questions tagged [rethinkdb-python]
128 questions
1
vote
1 answer
Import rethinkdb python module in to use in Jython
I am trying to connect to rethink db(has a python driver) from my java app.
RethinkDB python install section https://www.rethinkdb.com/docs/install-drivers/python/ does not have a place to explicitly download the python modules. Because for me, I…
![](../../users/profiles/712845.webp)
Subash Chaturanga
- 576
- 1
- 7
- 18
1
vote
2 answers
ReqlDriverError while connecting to rethinkdb in Django
Django throws below error :
ReqlDriverError: Server dropped connection with message: "RethinkDB cluster"
Am trying to connect to RethinkDB in Django via custom middleware.
Below is the code am using to connect to RethinkDB
@singleton
class…
![](../../users/profiles/5031965.webp)
Satheesh Panduga
- 779
- 1
- 8
- 28
1
vote
1 answer
tearDown not called for unittesting with Tornado
I'm using Rethinkdb and Tornado with rethinkdb.set_loop_type("tornado")
I'm using python unittests to test my server routes.
Here is my unittest base class:
class ServerTest(AsyncHTTPTestCase):
def setUp(self):
super(ServerTest,…
![](../../users/profiles/2620328.webp)
sihrc
- 2,533
- 2
- 17
- 40
1
vote
1 answer
Where does the data go once you've done rethinkdb restore
After I've used rethinkdb restore, where does rethinkdb import that data / access that data from?
I've tried searching for this answer, but my choice in keywords to use must be inadequate.
I want to use this directory as a shared volume for my…
![](../../users/profiles/2620328.webp)
sihrc
- 2,533
- 2
- 17
- 40
1
vote
1 answer
RethinkDB REQL Query to find number occurrences of distinct values in an array
I have a table like this in rethinkDB.
[{
"Id": [
12,
13
],
"group": "79",
"go_Id": []
}, {
"Id": [
12,
12,
12,
14
14
],
"group": "91",
"go_Id": [
16,
…
![](../../users/profiles/4502849.webp)
custosat
- 79
- 7
1
vote
1 answer
How to setup rethinkdb proxy server
we have two client machines, how do we connect both of them using proxy server? As you said earlier:
"To start a RethinkDB proxy on the client:
rethinkdb proxy -j -j ..."
only of the clients can connect in this way, since the ports will already be…
![](../../users/profiles/2947885.webp)
hellodk
- 266
- 3
- 9
1
vote
1 answer
Multidatacenter Replication with Rethinkdb
I have two servers in two different geographic locations (alfa1 and alfa2).
r.tableCreate('dados', {shards:1, replicas:{alfa1:1, alfa2:1}, primaryReplicaTag:'alfa1'})
I need to be able to write for both servers, but when I try to shutdown alfa1, and…
![](../../users/profiles/5287587.webp)
Carlos
- 51
- 1
- 1
1
vote
1 answer
Rethink DB Cross Cluster Replication
I have 3 different pool of clients in 3 different geographical locations.
I need configure Rethinkdb with 3 different clusters and replicate data between the (insert, update and deletes). I do not want to use shard, only replication.
I didn't found…
![](../../users/profiles/5287587.webp)
Carlos
- 51
- 1
- 1
1
vote
1 answer
RethinkDB Python Recursive Document Filter
Trying to do a recursive filter query on RethinkDB with they Python wrapper. Having a lot of trouble getting it work.
Tried a lot of variations of the query, to no avail. Essentially, I'm trying to find the rows which do not have a document nested…
![](../../users/profiles/50348.webp)
Nick Woodhams
- 10,553
- 10
- 47
- 51
1
vote
1 answer
RethinkDB Changefeeds Lost Connection
I registered a Changefeeds to one of my RethinkDB tables, and it's been working perfectly for the past 6 days. Data get posted to my rethinkDB table every 2 minutes, and the Changefeeds has no problem getting them. But yesterday due to some reason…
![](../../users/profiles/2190546.webp)
J Freebird
- 2,984
- 3
- 32
- 72
1
vote
1 answer
REQL Date and time queries
My documents contain the following fields:
"valid_from": "Mar 17 08:55:04 2011 GMT"
"valid_to": "Mar 16 08:55:04 2017 GMT"
My base query currently looks like this:
r.db('items').table('token')
How can I query to only retrieve/filter the…
![](../../users/profiles/1513388.webp)
user1513388
- 6,151
- 8
- 52
- 98
1
vote
0 answers
Rethinkdb reads are insanely slow
I am simply trying to read all selected fields from a RethinkDB table into memory to construct a pandas DataFrame from it.
The table is indexed by an integer primary key and the database runs only one a single machine.
The code to read the data is:
…
![](../../users/profiles/699854.webp)
Kirell
- 7,506
- 4
- 37
- 54
1
vote
1 answer
How to query a document by values that are in an attribute that is an array?
the document is like this:
{
"checkpointIds": [
"1155adc1-cb50-4124-9b5f-7667693a34c0" ,
"1155adc1-cb50-4124-9b5f-7667693a34c1"
] ,
"id": "1a55dc34-bd30-4915-ada7-ce4972d5df4f"
}
i want to query documents that has specific values inside an…
![](../../users/profiles/2172260.webp)
Julio Marins
- 7,929
- 7
- 40
- 48
1
vote
1 answer
Insert json log files in rethinkdb?
I have a log file by the name log.json.
A simple insert in rethinkdb works perfectly.
Now this json file get updated every second, how to make sure that the rethinkdb gets the new data automatically, is there a way to achieve this, or i have to…
![](../../users/profiles/3754971.webp)
user3754971
- 69
- 7
1
vote
1 answer
Rethinkdb, Python, and Filter
So here's a fun reduced snippet on some code I'm working on in Python 2.7 with the latest RethinkDB (1.14). My problem is now I need to add another condition, and there's too many possible combinations. Can this be done in a single filter…
![](../../users/profiles/1509526.webp)
heiskr
- 385
- 2
- 11