Search code examples
rethinkdbrethinkdb-javascript

How to increase the responding time for ReQL query in RethinkDB


By now I've 1Million records in my table. When I trying to add a new column/variable to the table it is showing time out error.I even tried to limit the data intake but it doesn't. Can anyone tell me how to tackel it. Any help would be appreaciable.

e: HTTP ReQL query timed out after 300 seconds in:
r.table("interestdata").update({"pick": 0});
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 

Thanks in advance!


Solution

  • From the rethink tutorial we can increase the connection timeout using javascript or python etc.

    r.connect({
    host: 'localhost',
    port: 28015,
    db: 'test',
    timeout:600
    }
    

    This worked for me.