Is it possible to get just a count of the no of columns in a row, in efficient manner ?

2011-03-13 Thread Ertio Lew
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 ?


Re: Is it possible to get just a count of the no of columns in a row, in efficient manner ?

2011-03-13 Thread Tyler Hobbs
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?


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 
Maintainer of the pycassa  Cassandra
Python client library