I'm using rethinkdb with flask (python 3) that is hosted locally on a Windows machine. The problem is that connection is being closed very frequently.
The error looks like this:
rethinkdb.errors.ReqlDriverError: Connection is closed.
In python i defined connection like this:
conn = r.connect("localhost", 28015).repl()
Example of my query:
r.db('izmjene').table("users").get_all(
email, index="email").count().run(conn)