The documentation of the Go SDK says:
func (b *Bucket) Do(ops []BulkOp) error
Do execute one or more
BulkOp
items in parallel.
Does that mean issuing n requests to the server, n being the size of the slice?
Because then this could be faster, a single trip to the database
SELECT *, META().id FROM travel-sample where meta().id in [...list of ids like in the []Bulkop]
On the other hand, this page:
https://blog.couchbase.com/bulk-operations-using-couchbase-and-golang/
says:
The BulkOp type has a method called “Do” which actually performs the pipelining of requests in a batch operation on the cluster.
Which would indicate that a single request is issued.
What is actually the case? What is best for performance?