incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aaron morton <aa...@thelastpickle.com>
Subject Re: newbie question: how do I know the total number of rows of a cf?
Date Thu, 31 Mar 2011 23:23:08 GMT
It iterates over all the SSTables and disk and estimates the number of keys by looking at how
big the index is. It does not count the actual keys. 

aaron


On 31 Mar 2011, at 17:46, Sheng Chen wrote:

> I just found an estmateKeys() method of the ColumnFamilyStoreMBean.
> Is there any indication about how it works?
> 
> Sheng
> 
> 2011/3/28 Sheng Chen <chensheng2010@gmail.com>
> Hi all,
> I want to know how many records I am holding in Cassandra, just like count(*) in sql.
> What can I do ? Thank you.
> 
> Sheng
> 
> 
> 


Mime
View raw message