rethinkdb update and memory monitoring