How to aggregate records server side from python driver?

We’d like to use the batch get feature in the python driver with a server-side aggregate on a single bin (count)… is this possible without using a UDF?

Thanks!

Hey Joshua. You can’t really do this with a UDF, currently. There are two classes of UDF, record UDFs which operate on a single record, and stream UDFs which operate on the stream of records returned from a scan or query. Batch-reads fall outside either of these.

For now you’ll have to do such an aggregation on the client-side. We are considering extending UDFs to batch reads, but it’s not yet on the roadmap.

2 Likes