incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tyler Hobbs <ty...@datastax.com>
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 <ertiop93@gmail.com> wrote:

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


No.


> 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 <http://datastax.com/>
Maintainer of the pycassa <http://github.com/pycassa/pycassa> Cassandra
Python client library

Mime
View raw message