Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 79039 invoked from network); 19 Apr 2010 07:20:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Apr 2010 07:20:18 -0000 Received: (qmail 49026 invoked by uid 500); 19 Apr 2010 07:20:18 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 48917 invoked by uid 500); 19 Apr 2010 07:20:16 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 48909 invoked by uid 99); 19 Apr 2010 07:20:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Apr 2010 07:20:15 +0000 X-ASF-Spam-Status: No, hits=-1308.8 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Apr 2010 07:20:14 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3J7Jrqh009295 for ; Mon, 19 Apr 2010 03:19:54 -0400 (EDT) Message-ID: <8079375.6011271661593769.JavaMail.jira@thor> Date: Mon, 19 Apr 2010 03:19:53 -0400 (EDT) From: "Stu Hood (JIRA)" To: commits@cassandra.apache.org Subject: [jira] Updated: (CASSANDRA-749) Secondary indices for column families MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-749?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stu Hood updated CASSANDRA-749: ------------------------------- Comment: was deleted (was: > If the property is NOT the original, base row key, then not matter what kind of index you have, you > need to read all the results to sort in the desired order I think we agree that we would never want to allow this. Instead, for an index read with the non-local index, I would propose that the order _must_ be defined beforehand. If, for instance, you wanted to do an index read in base row key order, then you would need to define an index with a compound key of 'basevalue|basekey', so that each basevalue (presumably low cardinality) would be sorted by the basekey. For range queries over a few basevalues, there would be some merging involved, but it would _not_ need a sort, and it wouldn't necessarily involve the entire cluster. For instance, for a range query for index values between 1969 and 1970, you would have two basevalues to consider, and so you would want to perform a merge of the (pre-sorted) basekeys for 1969 and 1970. EDIT: sorry, I facepalmed after writing this comment, and deleted it briefly: the compound key would be 'basevalue|basekey', which changes a few things.) > Secondary indices for column families > ------------------------------------- > > Key: CASSANDRA-749 > URL: https://issues.apache.org/jira/browse/CASSANDRA-749 > Project: Cassandra > Issue Type: New Feature > Components: Core > Reporter: Gary Dusbabek > Assignee: Gary Dusbabek > Priority: Minor > Fix For: 0.8 > > Attachments: 0001-simple-secondary-indices.patch, views-discussion-2.txt, views-discussion.txt > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.