Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D00194F4B for ; Thu, 2 Jun 2011 04:48:43 +0000 (UTC) Received: (qmail 88342 invoked by uid 500); 2 Jun 2011 04:48:41 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 88276 invoked by uid 500); 2 Jun 2011 04:48:40 -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 88266 invoked by uid 99); 2 Jun 2011 04:48:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jun 2011 04:48:39 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.113.200.5] (HELO homiemail-a51.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jun 2011 04:48:33 +0000 Received: from homiemail-a51.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a51.g.dreamhost.com (Postfix) with ESMTP id F1F762E8058 for ; Wed, 1 Jun 2011 21:48:07 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=thelastpickle.com; h=content-type :mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; q=dns; s= thelastpickle.com; b=nAMlN8SQcqsp2y54569Cq8EjaCsfARwCp6S8+mVgMbh NvTiWg6vlIXtzhcXBK+C/1n4Nf/IhER0nZFRXuOzweEy38WaCEdpT+ILkrrEJ73G zLAChp7y5zk26DRYqZeto+VpOBzuAbui8K9vo3wmoukmRDjRncBur7qYqb2daXQU = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thelastpickle.com; h= content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; s= thelastpickle.com; bh=PC4+lk1al15HCD4r7tyWpZNiJZ4=; b=tOBnGHQpap +x/vDCCh99EkRc9WmcdnOk/40V6doDaQ4ptdVVBr08Bo5p9MW4dTT75fxH4CRQvL L4uReQOcxtFD4P9eLSLOnb59tJaldaWi6Q/3/y0SClzk380HWo8EcLIrQFqYE+rV vw74UVC5ngyEg04HFC/zmqexIpxcresMc= Received: from [10.1.2.79] (219-89-36-238.dialup.xtra.co.nz [219.89.36.238]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a51.g.dreamhost.com (Postfix) with ESMTPSA id 835452E8057 for ; Wed, 1 Jun 2011 21:48:07 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: get_indexed_slices count api From: aaron morton In-Reply-To: <4DE55BF6.9080003@ihep.ac.cn> Date: Thu, 2 Jun 2011 16:48:00 +1200 Content-Transfer-Encoding: quoted-printable Message-Id: <42C6DBC6-9C33-4E91-B692-CD93702892C2@thelastpickle.com> References: <4DE55BF6.9080003@ihep.ac.cn> To: user@cassandra.apache.org X-Mailer: Apple Mail (2.1084) The best thing to do is log into jira and vote for the feature so others = know people are interested in it. Cheers ----------------- Aaron Morton Freelance Cassandra Developer @aaronmorton http://www.thelastpickle.com On 1 Jun 2011, at 09:21, Donal Zang wrote: > Hi, > I'm query on cassandra like "select count(*) from table where column1 = =3D v1 and ...", based on a secondary index on column1. > But using get_indexed_slices(), I have to fetch all the rows and count = on them, which is not needed. > So a get_indexed_slices count api [1] would be very helpful, but it = seems no one is working on this now. (I see it's related to [2], which = is blocked by [3]) >=20 > My question is : Will get_indexed_slices count api be provided? Or I = should doing some CF-based indexes by myself like = http://www.anuff.com/2010/07/secondary-indexes-in-cassandra.html? >=20 > Thanks! > Donal >=20 > https://issues.apache.org/jira/browse/CASSANDRA-2601 [1] > https://issues.apache.org/jira/browse/CASSANDRA-1600 [2] > https://issues.apache.org/jira/browse/CASSANDRA-1034 [3] >=20 >=20