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: PHPCassa get number of rows
Date Thu, 21 Jul 2011 00:14:21 GMT
Cassandra does not provide a way to count the number of rows, the best you can do is a series
of range calls and count them on the client side 
http://thobbs.github.com/phpcassa/tutorial.html

If this is something you need in your app consider creating a custom secondary index to store
the row keys and counting the columns. NOTE: counting columns just reads aol the columns,
for a big row it can result in an OOM.

Cheers
-----------------
Aaron Morton
Freelance Cassandra Developer
@aaronmorton
http://www.thelastpickle.com

On 20/07/2011, at 8:29 AM, Jean-Nicolas Boulay Desjardins <jnbdzjnbdz@gmail.com> wrote:

> Hi,
> 
> How can I get the number of rows with PHPCassa?
> 
> Thanks in advance.

Mime
View raw message