In Cassandra to get the aggregated data like sum,avg,min,max we use a query like,:
SELECT avg(race_points) FROM cycling.cyclist_points WHERE id=e3b19ec4-774a-4d1c-9e5a-decec1e30aac;
But, in cqlengine how is this be done.? I have columns with name and age. I want to get the average age from the list. Kindly help me to retrieve avg(age) in cqlengine.
Could not find any aggregate in cql engine, we need to iterate the queryset one after the other, use values_list to reduce memory usage for big queryset.