cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Morton <>
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

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.

Aaron Morton
Freelance Cassandra Developer

On 20/07/2011, at 8:29 AM, Jean-Nicolas Boulay Desjardins <> wrote:

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

View raw message