RethinkDB multiple queries in a single request
问题 I'm trying to execute several RQL commands in a single request to server, without much success I may add. I have tried r.union , but it only works with sequences. What I really want: [r.db(..).table(..).get(id1).delete(), r.db(..).table(..).get(id2).delete(), r.db(..).table(..).insert(...)].run_all_at_once Is there any way to do this? Thanks! 回答1: You can do r.expr( [r.db(...).table(...).get(id1).delete(), r.db(...).table(...).get(id1).delete(), r.db(...).table(...).insert(...) ] ).run(conn)