Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 77442 invoked from network); 8 Feb 2008 14:01:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Feb 2008 14:01:42 -0000 Received: (qmail 41420 invoked by uid 500); 8 Feb 2008 14:01:34 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 41385 invoked by uid 500); 8 Feb 2008 14:01: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 41376 invoked by uid 99); 8 Feb 2008 14:01:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2008 06:01:34 -0800 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.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Feb 2008 14:01:26 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6AB65714073 for ; Fri, 8 Feb 2008 06:01:16 -0800 (PST) Message-ID: <23565778.1202479276434.JavaMail.jira@brutus> Date: Fri, 8 Feb 2008 06:01:16 -0800 (PST) From: "Alex Lukin (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Issue Comment Edited: (JCR-1365) Query path constraints like foo//*/bar do not scale In-Reply-To: <29127819.1202476147562.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-1365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12567042#action_12567042 ] alukin edited comment on JCR-1365 at 2/8/08 6:00 AM: --------------------------------------------------------- Most users do not bother with complicated XPath query to find nodes. Usually content modeled such way that node contains subnodes of one type. So query //foo/*/bar is quite common. Speed of this query is simply depressive. 200 nodes in 3 levels makes debugger "think" on query.execute() for minutes and then minutes on getting trough iterator. IMHO, it is high priority task.I've herad a lot of bad words from colleagues about Lucene in general and about Lucene in Jackrabbit and I think that the cause of all it is bad speed on such simple queries. May be It would be nice to be abble start guery not for entire workplace but for some node? Could it speedup search? was (Author: alukin): Most users do not bother with complicated XPath query to find nodes. Usually content modeled such way that node contains subnodes of one type. So query //foo/*/bar is quite common. Speed of this query is simply depressive. 200 nodes in 3 levels makes debugger "think" on query.execute() for minutes and then minutes on getting trough iterator. IMHO, it is high priority task.I've herad a lot of bad words from colleagues about Lucene in general and about Lucene in Jackrabbit and I think that the cause of all it is bad speed on such simple queries. > Query path constraints like foo//*/bar do not scale > --------------------------------------------------- > > Key: JCR-1365 > URL: https://issues.apache.org/jira/browse/JCR-1365 > Project: Jackrabbit > Issue Type: Improvement > Components: jackrabbit-core > Reporter: Marcel Reutegger > Priority: Minor > > To resolve the * step the LuceneQueryBuilder currently creates a MatchAllQuery and checks every node for a foo ancestor. Instead, it should search for bar nodes and check for foo ancestors with at least one arbitrary hierarchy level in between. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.