Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-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 32DF77822 for ; Sat, 13 Aug 2011 12:05:53 +0000 (UTC) Received: (qmail 38360 invoked by uid 500); 13 Aug 2011 12:05:52 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 38124 invoked by uid 500); 13 Aug 2011 12:05:51 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 38116 invoked by uid 99); 13 Aug 2011 12:05:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Aug 2011 12:05:50 +0000 X-ASF-Spam-Status: No, hits=-2000.8 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Aug 2011 12:05:48 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2EB40BA9C6 for ; Sat, 13 Aug 2011 12:05:27 +0000 (UTC) Date: Sat, 13 Aug 2011 12:05:27 +0000 (UTC) From: "Alex Parvulescu (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <730015048.35858.1313237127188.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <28227677.91591291373592428.JavaMail.jira@thor> Subject: [jira] [Commented] (JCR-2830) JCR-SQL2 : Query on large node-set is (too) slow even when offset and limit is used 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/JCR-2830?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13084600#comment-13084600 ] Alex Parvulescu commented on JCR-2830: -------------------------------------- yes, the patch is old, and will soon be rendered obsolete by JCR-2959 > JCR-SQL2 : Query on large node-set is (too) slow even when offset and limit is used > ----------------------------------------------------------------------------------- > > Key: JCR-2830 > URL: https://issues.apache.org/jira/browse/JCR-2830 > Project: Jackrabbit Content Repository > Issue Type: Improvement > Components: query > Affects Versions: 2.3.0 > Environment: + Win7 (64bit) > + JR built from latest greatest sources > + repo with many nodes of same node type > 77'000 > Reporter: Clemens Wyss > Attachments: JCR-2830.patch > > > Given a node-set of approx 77'000 entries a SQL2-query limited to 10 nodes takes approx 37 to 59sec (!) whereas the corresponding SQL returns in less than 1sec. > Query q = session.getWorkspace().getQueryManager().createQuery( "select * from [task]", Query.SQL2 ); > q.setOffset( 0 ); // or any other offset > q.setLimit( 10 ); > returnValue = q.execute(); -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira