There are two functions on the 0.7 API http://wiki.apache.org/cassandra/API to
count the columns in a row, get_count() and multiget_count() (not listed on the
wiki yet). Both of these will take a SlicePredicate which may have an empty
start and end.
The only way to count rows is to use get_ra
Buddasystem is right.
A count returns columns to the client which count it. My advice : do not
count big columns / supercolumns. People in the dev team are trying to
develop distributed counters but I don't know the state of this research.
Best regards,
Victor Kabdebon
http://www.voxnucleus.fr
20
As far as I know, there are no aggregate operations built into Cassandra,
which means you'll have to retrieve all of the data to count it in the
client. I had a thread on this topic 2 weeks ago. It's pretty bad.
--
View this message in context:
http://cassandra-user-incubator-apache-org.3065146