Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 67687 invoked from network); 28 Mar 2009 16:23:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Mar 2009 16:23:12 -0000 Received: (qmail 98640 invoked by uid 500); 28 Mar 2009 16:23:11 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 98575 invoked by uid 500); 28 Mar 2009 16:23:11 -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 98567 invoked by uid 99); 28 Mar 2009 16:23:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Mar 2009 16:23:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 28 Mar 2009 16:23:10 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 67093234C003 for ; Sat, 28 Mar 2009 09:22:50 -0700 (PDT) Message-ID: <1364171022.1238257370407.JavaMail.jira@brutus> Date: Sat, 28 Mar 2009 09:22:50 -0700 (PDT) From: "Tiago R. Espinha (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-3842) Convert "org.apache.derbyTesting.functionTests.tests.store.holdCursorExternalSortJDBC30.sql" to junit. In-Reply-To: <627133149.1218961666394.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-3842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12693467#action_12693467 ] Tiago R. Espinha commented on DERBY-3842: ----------------------------------------- That's an improvement at least :) now the property does get set as we can see from the output: --------------------8<--------------------------- 2009-03-28 16:04:06.418 GMT : Security manager installed using the Basic server security policy. 2009-03-28 16:04:07.063 GMT : Apache Derby Network Server - 10.6.0.0 alpha - (757793M) started and ready to accept connections on port 1527 Sorting is booting and we have: 5 Sorting and defaultSortBufferMax is 5 ---------------------8<-------------------------- The crux of it is that the statistics data still reports as doing an internal sort: --------------------8<------------------------------------------------------------------- Source result set: Sort ResultSet: Number of opens = 1 Rows input = 416 Rows returned = 416 Eliminate duplicates = false In sorted order = false Sort information: Number of rows input=416 Number of rows output=416 Sort type=internal constructor time (milliseconds) = 0 open time (milliseconds) = 0 next time (milliseconds) = 0 close time (milliseconds) = 0 optimizer estimated row count: 422.00 optimizer estimated cost: 140.25 --------------------8<------------------------------------------------------------------- (The table is slightly smaller now, just 416 records, but that shouldn't be an issue with a sortBufferMax of 5) So, I think I'm looking at two different issues here: - This specific property can't be set using SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(); Or in other words, it can be set but then Derby won't find it. This will probably not be an issue for my actual test, since I do it programmatically there. Maybe this is even normal and it was just a mistake of mine all along when testing manually. - The other, actual issue, is that Derby still refuses to do external sorting, even when the record count clearly exceeds the sortBufferMax. This one still remains a mystery. > Convert "org.apache.derbyTesting.functionTests.tests.store.holdCursorExternalSortJDBC30.sql" to junit. > ------------------------------------------------------------------------------------------------------ > > Key: DERBY-3842 > URL: https://issues.apache.org/jira/browse/DERBY-3842 > Project: Derby > Issue Type: Test > Components: Test > Reporter: Junjie Peng > Assignee: Tiago R. Espinha > Attachments: derby-3842-1.patch, derby-3842-1.stat, derby-3842-tiago.patch > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.