Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9709210273 for ; Thu, 17 Oct 2013 21:48:12 +0000 (UTC) Received: (qmail 36492 invoked by uid 500); 17 Oct 2013 21:46:14 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 36445 invoked by uid 500); 17 Oct 2013 21:46:13 -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 36146 invoked by uid 99); 17 Oct 2013 21:45:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Oct 2013 21:45:46 +0000 Date: Thu, 17 Oct 2013 21:45:46 +0000 (UTC) From: "Alex Liu (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-6048) Add the ability to use multiple indexes in a single query 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-6048?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alex Liu updated CASSANDRA-6048: -------------------------------- Attachment: 6048-trunk.txt > Add the ability to use multiple indexes in a single query > --------------------------------------------------------- > > Key: CASSANDRA-6048 > URL: https://issues.apache.org/jira/browse/CASSANDRA-6048 > Project: Cassandra > Issue Type: New Feature > Components: Core > Reporter: Alex Liu > Assignee: Alex Liu > Fix For: 2.1 > > Attachments: 6048-1.2-branch.txt, 6048-trunk.txt > > > Existing data filtering uses the following algorithm > {code} > 1. find best selective predicate based on the smallest mean columns count > 2. fetch rows for the best selective predicate predicate, then filter the data based on other predicates left. > {code} > So potentially we could improve the performance by > {code} > 1. joining multiple predicates then do the data filtering for other predicates. > 2. fine tune the best predicate selection algorithm > {code} > For multiple predicate join, it could improve performance if one predicate has many entries and another predicate has a very few of entries. It means a few index CF read, join the row keys, fetch rows then filter other predicates > Another approach is to have index on multiple columns. -- This message was sent by Atlassian JIRA (v6.1#6144)