Re: Fauna Questions

2010-12-15 Thread Ryan King
On Tue, Dec 14, 2010 at 7:14 AM, Alberto Velandia wrote: > Hi has anyone noticed that the documentation for the Cassandra Class is gone > from the website? > > http://blog.evanweaver.com/2010/12/06/cassandra-0-8/ http://rdoc.info/gems/cassandra will always have the latest rdocs. > I was wonderi

Re: Fauna Questions

2010-12-14 Thread Tyler Hobbs
There's an estimateKeys() function exposed via JMX that will give you an approximate row count for the node. In jconsole this shows up under o.a.c.db -> ColumnFamilies -> Keyspace -> CF -> Operations. There's not a "precise" way to count rows other than to do a get_range_slices() over the entire

Re: Fauna Questions

2010-12-14 Thread Aaron Morton
There is a truncate() function on the ruby api if you require Cassandra/0.7 this can truncate all the data in a CF. It will call the truncate function on the thrift api. I do not know of a precise way to get a count of rows. There is a function to count the number of columns, see count_columns