You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by aaron morton <aa...@thelastpickle.com> on 2011/04/01 01:23:08 UTC

Re: newbie question: how do I know the total number of rows of a cf?

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 <ch...@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
> 
> 
>