Re: Count rows

2010-08-13 Thread Jonathan Ellis
Well, it's a bad idea, except when it isn't. I think I'm okay with our api evolving to handle more corner cases. It's true that it runs the risk of encouraging bad design from new users though. On Fri, Aug 13, 2010 at 1:07 PM, Gary Dusbabek wrote: > Should we close https://issues.apache.org/jir

Re: Count rows

2010-08-13 Thread Gary Dusbabek
Should we close https://issues.apache.org/jira/browse/CASSANDRA-653 then? Fetching a count of all rows is just a specific instance of fetching the count of a range or rows. I spoke to a programmer at the summit who was working on this ticket mainly as a way of getting familiar with the codebase.

Re: Count rows

2010-08-13 Thread Mark
On 8/13/10 10:52 AM, Jonathan Ellis wrote: because it would work amazingly poorly w/ billions of rows. it's an antipattern. On Fri, Aug 13, 2010 at 10:50 AM, Mark wrote: On 8/13/10 10:44 AM, Jonathan Ellis wrote: not without fetching all of them with get_range_slices On Fri, Aug 1

Re: Count rows

2010-08-13 Thread Jonathan Ellis
because it would work amazingly poorly w/ billions of rows. it's an antipattern. On Fri, Aug 13, 2010 at 10:50 AM, Mark wrote: > On 8/13/10 10:44 AM, Jonathan Ellis wrote: >> >> not without fetching all of them with get_range_slices >> >> On Fri, Aug 13, 2010 at 10:37 AM, Mark  wrote: >> >>> >>>

Re: Count rows

2010-08-13 Thread Mark
On 8/13/10 10:44 AM, Jonathan Ellis wrote: not without fetching all of them with get_range_slices On Fri, Aug 13, 2010 at 10:37 AM, Mark wrote: Is there some way I can count the number of rows in a CF.. CLI, MBean? Gracias Im guessing you would advise against this? Any reaso

Re: Count rows

2010-08-13 Thread Jonathan Ellis
not without fetching all of them with get_range_slices On Fri, Aug 13, 2010 at 10:37 AM, Mark wrote: > Is there some way I can count the number of rows in a CF.. CLI, MBean? > > Gracias > -- Jonathan Ellis Project Chair, Apache Cassandra co-founder of Riptano, the source for professional Cass