Select specific map keys in batch query

Is it possible to return only specific map keys in a query or batch read?

We have a query expression that filters by a specific key in a map and we would like to return the record with the specified bin values and the filtered key without pushing all the rest of the map data over the network (the map is a CDT, so the value is a nested map).

I imagine this can be done with a UDF, but I’d like to avoid the overhead. It can be done with single reads using operations, but I don’t see an option for it in batch, at least in the go API.

If this isn’t possible now, would this be a reasonable feature request?

I am not an expert on this specific topic, but batch operations were added fairly recently on the main client libraries. For Go, it seems it made it in version 5.5.0:

  • [CLIENT-1586] - Support Batch Read Operations.
© 2021 Copyright Aerospike, Inc. | All rights reserved. Creators of the Aerospike Database.