aerospike / aerospike-client-go

Aerospike Client Go
Apache License 2.0
429 stars 199 forks source link

Batch Operations instead of just gets or exists #371

Closed JonasHiltl closed 2 years ago

JonasHiltl commented 2 years ago

I just wanted to know if it's possible to batch operations instead of the predefined commands, like batchGet or batchExists. I was hoping to be able to batch multiple Operations like MapPutItemsOp or MapRemoveByKeyOp together to be executed in one network request.

khaf commented 2 years ago

The new Aerospike server v6, released a few weeks ago supports this functionality. You can use the BatchOperate API in the also new Go client v6 to achieve what you want.

JonasHiltl commented 2 years ago

Thanks for your fast response, exactly what I was looking for.

khaf commented 2 years ago

No problem. Let me know how it goes and don't hesitate to file other tickets if you encounter any road blocks.