Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 8266 invoked from network); 28 Mar 2011 07:17:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Mar 2011 07:17:36 -0000 Received: (qmail 38987 invoked by uid 500); 28 Mar 2011 07:17:34 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 38958 invoked by uid 500); 28 Mar 2011 07:17:27 -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 38950 invoked by uid 99); 28 Mar 2011 07:17:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Mar 2011 07:17:25 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of stephen.alan.connolly@gmail.com designates 209.85.214.172 as permitted sender) Received: from [209.85.214.172] (HELO mail-iw0-f172.google.com) (209.85.214.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Mar 2011 07:17:18 +0000 Received: by iwn39 with SMTP id 39so3206151iwn.31 for ; Mon, 28 Mar 2011 00:16:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=pVGo0yKVpksCrIRxnzbv+FtHGZhEgy91kVMq2qzbXqY=; b=bWwj0NBa4vLCwDyTK4biHkkICMP6AX76eokzq8qdecp0N3W3bMUgI/Ek9HZ8C261wY KbNoCwzdd/vHpWIgSwMNpngbKfTdvRpDILQnRKT3r7PgM6qHwYNI4bb+wuAXVhSdGy5q hAqeREJLQxeMUvNmmJt3wsVCVlWqqUWpRsnuk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=YqdY2hqXlQVd9fTKXZkDWkHA8ZbLBzJ0tlYySVOQDiG4YZQsAbhHM8Gw2OTby5CVCG 5wTfKPgYa7+1v84cSAit0amfYogQyQYApNDKFnXusZhsTkbJgDfFqlqtuyzPZh5KHwy5 51ZsbU6HxD8jtuggZR4gIHTfVXmT3KLxrJ61k= MIME-Version: 1.0 Received: by 10.231.197.155 with SMTP id ek27mr3557862ibb.187.1301296617280; Mon, 28 Mar 2011 00:16:57 -0700 (PDT) Received: by 10.231.32.4 with HTTP; Mon, 28 Mar 2011 00:16:57 -0700 (PDT) Received: by 10.231.32.4 with HTTP; Mon, 28 Mar 2011 00:16:57 -0700 (PDT) In-Reply-To: References: Date: Mon, 28 Mar 2011 08:16:57 +0100 Message-ID: Subject: Re: newbie question: how do I know the total number of rows of a cf? From: Stephen Connolly To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=00504501743d9ed79e049f85bae7 X-Virus-Checked: Checked by ClamAV on apache.org --00504501743d9ed79e049f85bae7 Content-Type: text/plain; charset=ISO-8859-1 iterate. otherwise if that will be too slow and you will do it often, the nosql way is to create a separate column family updated with each row add/delete to hold the answer for you. - Stephen --- Sent from my Android phone, so random spelling mistakes, random nonsense words and other nonsense are a direct result of using swype to type on the screen On 28 Mar 2011 07:40, "Sheng Chen" wrote: > Hi all, > I want to know how many records I am holding in Cassandra, just like > count(*) in sql. > What can I do ? Thank you. > > Sheng --00504501743d9ed79e049f85bae7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

iterate.

otherwise if that will be too slow and you will do it often, the nosql w= ay is to create a separate column family updated with each row add/delete t= o hold the answer for you.

- Stephen

---
Sent from my Android phone, so random spelling mistakes, random nonsense wo= rds and other nonsense are a direct result of using swype to type on the sc= reen

On 28 Mar 2011 07:40, "Sheng Chen" <= ;chensheng2010@gmail.com>= wrote:
> Hi all,
> I want to know how man= y records I am holding in Cassandra, just like
> count(*) in sql.
> What can I do ? Thank you.
>
> S= heng
--00504501743d9ed79e049f85bae7--