Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 31376 invoked from network); 3 Dec 2010 10:53:35 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Dec 2010 10:53:35 -0000 Received: (qmail 44612 invoked by uid 500); 3 Dec 2010 10:53:35 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 44460 invoked by uid 500); 3 Dec 2010 10:53:34 -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 44438 invoked by uid 99); 3 Dec 2010 10:53:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Dec 2010 10:53:33 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Dec 2010 10:53:33 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oB3ArCUp024000 for ; Fri, 3 Dec 2010 10:53:13 GMT Message-ID: <28227677.91591291373592428.JavaMail.jira@thor> Date: Fri, 3 Dec 2010 05:53:12 -0500 (EST) From: "Clemens Wyss (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Created: (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 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 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 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. - You can reply to this email to add a comment to the issue online.