Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 59113 invoked from network); 8 Feb 2008 13:09:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Feb 2008 13:09:43 -0000 Received: (qmail 61913 invoked by uid 500); 8 Feb 2008 13:09:34 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 61896 invoked by uid 500); 8 Feb 2008 13:09:34 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 61881 invoked by uid 99); 8 Feb 2008 13:09: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 05:09:34 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of marcel.reutegger@gmx.net designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 08 Feb 2008 13:09:18 +0000 Received: (qmail invoked by alias); 08 Feb 2008 13:09:11 -0000 Received: from l2tp.day.com (EHLO [192.168.10.18]) [62.192.10.243] by mail.gmx.net (mp025) with SMTP; 08 Feb 2008 14:09:11 +0100 X-Authenticated: #894343 X-Provags-ID: V01U2FsdGVkX1/+o2YSAkT+nwuOGX+aZ804WBVcEdTpQgk3c1qKIh GVrzmA7fMlESpO Message-ID: <47AC5477.7090500@gmx.net> Date: Fri, 08 Feb 2008 14:09:11 +0100 From: Marcel Reutegger User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: users@jackrabbit.apache.org Subject: Re: Q. Xpath performance again References: <200802071951.45974.lukin@stu.cn.ua> <200802072231.18127.lukin@stu.cn.ua> In-Reply-To: <200802072231.18127.lukin@stu.cn.ua> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org Alex Lukin wrote: > Query is quite simple: "//uk/news//*/pib:pibdocument" I suspect it's the news//* part. do you really have varying levels of categories? otherwise you should rather write news/*. specifying the node type of the category nodes will also help. e.g. if you could write something like: uk/news//element(*, pib:category)/pib:pibdocument I've filed a jira issue to improve the performance for path constraints like foo//*/bar. see https://issues.apache.org/jira/browse/JCR-1365 regards marcel