Re: best way to do a count

2011-01-16 Thread Aaron Morton
Ah, was looking at something old. There is also a multiget_count() :) Sounds like your in business. Aaron On 17/01/2011, at 11:08 AM, Brandon Williams wrote: > On Sun, Jan 16, 2011 at 3:36 PM, Aaron Morton wrote: > Not that I know of. > > In 0.7 you have to pass a predicate to get_count (an

Re: best way to do a count

2011-01-16 Thread Brandon Williams
On Sun, Jan 16, 2011 at 3:36 PM, Aaron Morton wrote: > Not that I know of. > In 0.7 you have to pass a predicate to get_count (and use a small hack to get the old behavior: https://github.com/driftx/Telephus/blob/0.7/telephus/client.py#L109 ) -Brandon

Re: best way to do a count

2011-01-16 Thread Aaron Morton
Not that I know of. Can you share some more information on you application, you may be able to design your way around it by denormalising. Aaron On 17/01/2011, at 5:22 AM, Michael Fortin wrote: > From what I can tell, get_count(), returns the total number of columns, is > there a way to get t

Re: best way to do a count

2011-01-16 Thread Michael Fortin
From what I can tell, get_count(), returns the total number of columns, is there a way to get the count on a slice? The docs for Counters also doesn't make any references to slices either. On Jan 12, 2011, at 4:07 PM, Aaron Morton wrote: > There is a get_count() API function http://wiki.apache

Re: best way to do a count

2011-01-12 Thread Aaron Morton
There is a get_count() API function http://wiki.apache.org/cassandra/API , it's going to count the columns in a row or row+super column. This function is available in me.prettyprint.cassandra.service.KeyspaceService.There are distributed counters submitted to the trunk http://wiki.apache.org/cassan

best way to do a count

2011-01-12 Thread Michael Fortin
I was working on a schema that looks something like this: HitFamily [UUID 1] ['user-agent'] = '…' HitFamily [UUID 1] ['referer'] = '…' HitFamily [UUID 1] ['client_id'] = Long … HitCountFamily [client_id as Long] [Current Date as Long] = UUID1 What I'd like to do is count the columns between a d