aerospike / aerospike-client-go

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

BatchGet with secondary index #404

Open rodinv opened 1 year ago

rodinv commented 1 year ago

v6 client's version allows you to read records using a BatchGet method from several sets using several primary keys. Is it possible to make a similar request but with several secondary keys (for example ICT_MAPVALUES index type)?

khaf commented 1 year ago

If you have an index, then you can issue a Query.

rodinv commented 1 year ago

If you have an index, then you can issue a Query.

and how I can pass multiple sets into query? Query method has 1 Statement parameter and through the Statement I can only refer to 1 set.

khaf commented 1 year ago

Sorry I missed that constraint. I don't think you can achieve what you are describing here, unless I have missed something.