Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 5931 invoked from network); 13 Aug 2010 21:48:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Aug 2010 21:48:13 -0000 Received: (qmail 75734 invoked by uid 500); 13 Aug 2010 21:48:11 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 75670 invoked by uid 500); 13 Aug 2010 21:48:10 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 75662 invoked by uid 99); 13 Aug 2010 21:48:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Aug 2010 21:48:10 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jbellis@gmail.com designates 209.85.212.44 as permitted sender) Received: from [209.85.212.44] (HELO mail-vw0-f44.google.com) (209.85.212.44) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Aug 2010 21:48:04 +0000 Received: by vws10 with SMTP id 10so1708764vws.31 for ; Fri, 13 Aug 2010 14:47:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=MJzCTOHUw27KHzKGTE9oQeDh8BYiccD9RQhLa8fYJPE=; b=ArAICvjWVszUoDPT3OmnJn3wNkPNL+XxhFLUNcjmqhh0okxUto0CSoXQkZbSxua9in Nsk4EJaNWDL7KWcqAwvRHLLnwR4YCP22RF2L416UafpXonlwUJsXZrj8lg06TMyl/IXj GQrRTmonOmZnbWl3O0NUvj7OpjhGeAgHJJ/yw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=DYepInnmU7XP8DU70J2ydmpckLdnxpJyJFsJIamd9KtYgxWApklFUSBKfg3LAXH+kr zEXY3FSBK9hab09LyHX/k/Z5rMaHg7ETqv+RQVZ3zOPhvFlnZzLTb0bbO/PgNK2P2yvP eJ4YrLMycjFWpxkTZAPlXcHsHCAcp9MUjbiOU= Received: by 10.220.157.201 with SMTP id c9mr1129089vcx.265.1281736063260; Fri, 13 Aug 2010 14:47:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.66.39 with HTTP; Fri, 13 Aug 2010 14:47:23 -0700 (PDT) In-Reply-To: References: <4C6582DB.6000904@gmail.com> <4C6585FB.30801@gmail.com> From: Jonathan Ellis Date: Fri, 13 Aug 2010 14:47:23 -0700 Message-ID: Subject: Re: Count rows To: user@cassandra.apache.org, gdusbabek@gmail.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 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 th= ough. On Fri, Aug 13, 2010 at 1:07 PM, Gary Dusbabek wrote: > Should we close https://issues.apache.org/jira/browse/CASSANDRA-653 > then? =A0Fetching 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. =A0He didn't want > to submit a patch though, if there was zero chance of it ever being > committed. > > Gary > > On Fri, Aug 13, 2010 at 12:52, Jonathan Ellis wrote: >> because it would work amazingly poorly w/ billions of rows. =A0it'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 =A0w= rote: >>>> >>>>> >>>>> 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 reason this wouldn't be >>> exposed via a MBean? >>> >> >> >> >> -- >> Jonathan Ellis >> Project Chair, Apache Cassandra >> co-founder of Riptano, the source for professional Cassandra support >> http://riptano.com >> > --=20 Jonathan Ellis Project Chair, Apache Cassandra co-founder of Riptano, the source for professional Cassandra support http://riptano.com