Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 61110 invoked from network); 2 Aug 2007 00:08:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Aug 2007 00:08:19 -0000 Received: (qmail 52266 invoked by uid 500); 2 Aug 2007 00:08:18 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 52224 invoked by uid 500); 2 Aug 2007 00:08:18 -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 52208 invoked by uid 99); 2 Aug 2007 00:08:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Aug 2007 17:08:18 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Aug 2007 00:07:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EA0D171403E for ; Wed, 1 Aug 2007 17:07:52 -0700 (PDT) Message-ID: <18962895.1186013272932.JavaMail.jira@brutus> Date: Wed, 1 Aug 2007 17:07:52 -0700 (PDT) From: "James F. Adams (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Created: (DERBY-2986) Query involving CASE statement significantly slower in 10.3.1.4 than in 10.2.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Query involving CASE statement significantly slower in 10.3.1.4 than in 10.2.2.0 -------------------------------------------------------------------------------- Key: DERBY-2986 URL: https://issues.apache.org/jira/browse/DERBY-2986 Project: Derby Issue Type: Bug Affects Versions: 10.3.1.4 Environment: Windows XP Reporter: James F. Adams A select of a CASE statement that performed acceptably in 10.2.2.0 is very slow in 10.3.1.4 the first time it is executed. The following example ij script: ELAPSEDTIME ON; CREATE table test1(id integer); CREATE table test2(id varchar(10)); SELECT CASE WHEN t.id = 1 THEN 'a' WHEN t.id = 2 THEN 'b' WHEN t.id = 3 THEN 'c' WHEN t.id = 4 THEN 'd' WHEN t.id = 5 THEN 'e' WHEN t.id = 6 THEN 'f' WHEN t.id = 7 THEN 'g' WHEN t.id = 8 THEN 'h' WHEN t.id = 11 THEN 'i' WHEN t.id = 12 THEN 'j' WHEN t.id = 15 THEN 'k' WHEN t.id = 16 THEN 'l' WHEN t.id = 23 THEN 'm' WHEN t.id = 24 THEN 'n' WHEN t.id = 27 THEN 'o' WHEN t.id = 31 THEN 'p' WHEN t.id = 41 THEN 'q' WHEN t.id = 42 THEN 'r' WHEN t.id = 50 THEN 's' ELSE (SELECT t2.id FROM test2 t2 ) END FROM test1 t; When run on 10.2.2.0 the select results in ELAPSED TIME = 187 milliseconds. When run on 10.3.1.4 the select results in ELAPSED TIME = 62281 milliseconds. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.