Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2D9E5EE9E for ; Tue, 25 Jun 2013 03:57:24 +0000 (UTC) Received: (qmail 79333 invoked by uid 500); 25 Jun 2013 03:57:24 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 79316 invoked by uid 500); 25 Jun 2013 03:57:20 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 79302 invoked by uid 99); 25 Jun 2013 03:57:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jun 2013 03:57:20 +0000 Date: Tue, 25 Jun 2013 03:57:20 +0000 (UTC) From: "Mamta A. Satoor (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DERBY-6226) enhance optmizer to use multiple probes into multiple indexes to satisfy OR queries on different columns. 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/DERBY-6226?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mamta A. Satoor updated DERBY-6226: ----------------------------------- Urgency: Normal Labels: derby_triage10_11 (was: ) > enhance optmizer to use multiple probes into multiple indexes to satisfy OR queries on different columns. > --------------------------------------------------------------------------------------------------------- > > Key: DERBY-6226 > URL: https://issues.apache.org/jira/browse/DERBY-6226 > Project: Derby > Issue Type: Improvement > Components: SQL > Affects Versions: 10.8.3.1, 10.11.0.0 > Reporter: Mike Matrigali > Labels: derby_triage10_11 > > For queries of the type: > select * from a where col1 = ? or col2 = ? > and good indexes exist on col1 and col2 it would be optimal if derby could execute a plan that > did an index scan first on the col1 index and then an index scan on col2 index. > Currently it looks like derby will do a full index scan if col1 and col2 are in any index, or a full table > scan otherwise. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira