You can do this using a transaction in ZConnection, you just have to start and end the transaction yourself. In the attachment, there is a modified example by @Hansvb, where you can compare the execution times for a query per transaction and all queries in one transaction.