Doing some simple work with rethinkdb
, but getting really troublingly slow results. Have a process by which I shove ~23k objects into a rethink table. Strangely enough, that's the part that's fast. However the snippet below is bizarrely slow:
# Definitions
import rethinkdb as r
conn = r.connect(host=RETHINKDB_HOST, port=RETHINKDB_PORT)
# Actual Code
rdbt = r.db('datasets').table(table_name)
rdbt.update({
"labels_completed": 0,
"labels": [],
"labeler_ids": [],
}).run(conn)
Seems very, very simple to me, but for some reason this query reliably takes ~10 seconds to run, and this isn't a big table. Previously did the update in three stages and it took 30s.
Why on earth is this update query so slow? Am I running into some secret performance issue in rethink?