You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Sonny Heer <so...@gmail.com> on 2010/03/11 20:29:07 UTC
client.get_count query
What does this query return?
Is there a way to do a range query and get the row count? (e.g. row
start = "TOW' row end = 'TOWZ')
Thanks
Re: client.get_count query
Posted by Eric Evans <ee...@rackspace.com>.
On Thu, 2010-03-11 at 12:58 -0800, Sonny Heer wrote:
> a lot. In the trillions (where each column name stores the valuable
> information and column values are empty). I read somewhere that
> column size should be in the single MB digits. Storing it in the key
> allows true horizontal scalability. Is this true?
Are you able to discuss the specifics? What you're storing, how much of
it you're storing, and maybe most importantly, what you need to query?
--
Eric Evans
eevans@rackspace.com
Re: client.get_count query
Posted by Sonny Heer <so...@gmail.com>.
a lot. In the trillions (where each column name stores the valuable
information and column values are empty). I read somewhere that
column size should be in the single MB digits. Storing it in the key
allows true horizontal scalability. Is this true?
On Thu, Mar 11, 2010 at 11:59 AM, Eric Evans <ee...@rackspace.com> wrote:
> On Thu, 2010-03-11 at 11:44 -0800, Sonny Heer wrote:
>> Thanks. Are there plans to implement a row count feature?
>
> Not that I'm aware of.
>
>> I have a model which doesn't store any columns since I could
>> potentially have a large # of columns. So all the valuable
>> information has been moved into the row key.
>
> This doesn't sound right; either there is a problem with your datamodel,
> or your choice of datastore. How many columns are we talking about here?
>
> --
> Eric Evans
> eevans@rackspace.com
>
>
Re: client.get_count query
Posted by Eric Evans <ee...@rackspace.com>.
On Thu, 2010-03-11 at 11:44 -0800, Sonny Heer wrote:
> Thanks. Are there plans to implement a row count feature?
Not that I'm aware of.
> I have a model which doesn't store any columns since I could
> potentially have a large # of columns. So all the valuable
> information has been moved into the row key.
This doesn't sound right; either there is a problem with your datamodel,
or your choice of datastore. How many columns are we talking about here?
--
Eric Evans
eevans@rackspace.com
Re: client.get_count query
Posted by Jesse McConnell <je...@gmail.com>.
i suspect your looking for:
https://issues.apache.org/jira/browse/CASSANDRA-653
cheers,
jesse
--
jesse mcconnell
jesse.mcconnell@gmail.com
On Thu, Mar 11, 2010 at 13:44, Sonny Heer <so...@gmail.com> wrote:
> Thanks. Are there plans to implement a row count feature?
>
> I have a model which doesn't store any columns since I could
> potentially have a large # of columns. So all the valuable
> information has been moved into the row key.
>
> On Thu, Mar 11, 2010 at 11:38 AM, Eric Evans <ee...@rackspace.com> wrote:
>> On Thu, 2010-03-11 at 11:29 -0800, Sonny Heer wrote:
>>> What does this query return?
>>
>> It counts the number of columns in a row or super column.
>>
>> Try: http://wiki.apache.org/cassandra/API#get_count
>>
>>> Is there a way to do a range query and get the row count? (e.g. row
>>> start = "TOW' row end = 'TOWZ')
>>
>> No, there isn't.
>>
>> --
>> Eric Evans
>> eevans@rackspace.com
>>
>>
>
Re: client.get_count query
Posted by Sonny Heer <so...@gmail.com>.
Thanks. Are there plans to implement a row count feature?
I have a model which doesn't store any columns since I could
potentially have a large # of columns. So all the valuable
information has been moved into the row key.
On Thu, Mar 11, 2010 at 11:38 AM, Eric Evans <ee...@rackspace.com> wrote:
> On Thu, 2010-03-11 at 11:29 -0800, Sonny Heer wrote:
>> What does this query return?
>
> It counts the number of columns in a row or super column.
>
> Try: http://wiki.apache.org/cassandra/API#get_count
>
>> Is there a way to do a range query and get the row count? (e.g. row
>> start = "TOW' row end = 'TOWZ')
>
> No, there isn't.
>
> --
> Eric Evans
> eevans@rackspace.com
>
>
Re: client.get_count query
Posted by Eric Evans <ee...@rackspace.com>.
On Thu, 2010-03-11 at 11:29 -0800, Sonny Heer wrote:
> What does this query return?
It counts the number of columns in a row or super column.
Try: http://wiki.apache.org/cassandra/API#get_count
> Is there a way to do a range query and get the row count? (e.g. row
> start = "TOW' row end = 'TOWZ')
No, there isn't.
--
Eric Evans
eevans@rackspace.com