incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tyler Hobbs <>
Subject Re: Is it possible to get just a count of the no of columns in a row, in efficient manner ?
Date Sun, 13 Mar 2011 17:53:31 GMT
On Sun, Mar 13, 2011 at 7:07 AM, Ertio Lew <> wrote:

> Can I get just a count of the no of columns in a row without
> deserializing all columns in row?


> Or should the usage of a counter
> column be preferred that maintains the no of columns currently present
> in the row, for the situations when the total count value is most
> frequently used than reading the actual columns ?

Yes, you should use a counter instead if you are counting the length of
non-tiny rows very frequently.

Tyler Hobbs
Software Engineer, DataStax <>
Maintainer of the pycassa <> Cassandra
Python client library

View raw message