Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 69543 invoked from network); 2 Oct 2009 10:05:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Oct 2009 10:05:48 -0000 Received: (qmail 93914 invoked by uid 500); 2 Oct 2009 10:05:47 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 93863 invoked by uid 500); 2 Oct 2009 10:05:47 -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 93850 invoked by uid 99); 2 Oct 2009 10:05:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Oct 2009 10:05:47 +0000 X-ASF-Spam-Status: No, hits=-2.8 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [64.18.2.28] (HELO exprod7og125.obsmtp.com) (64.18.2.28) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 02 Oct 2009 10:05:37 +0000 Received: from source ([209.85.216.177]) by exprod7ob125.postini.com ([64.18.6.12]) with SMTP ID DSNKSsXQW+sXTJ+kYfaASanm3ojvqRTXEY7Q@postini.com; Fri, 02 Oct 2009 03:05:16 PDT Received: by pxi7 with SMTP id 7so1128322pxi.17 for ; Fri, 02 Oct 2009 03:05:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.141.35.12 with SMTP id n12mr735156rvj.24.1254477915395; Fri, 02 Oct 2009 03:05:15 -0700 (PDT) In-Reply-To: References: <25704607.post@talk.nabble.com> Date: Fri, 2 Oct 2009 12:05:15 +0200 Message-ID: <697f8380910020305m5feb8b9du1881b38d7f2a556c@mail.gmail.com> Subject: Re: Date Property Performance in 1.6 From: Ard Schrijvers To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Oct 2, 2009 at 11:52 AM, Alexander Klimetschek wrote: > On Thu, Oct 1, 2009 at 20:52, majohnst wrote: >> If I add a date property: >> //element(*,my:namespace)[@property='value' and >> @datestart<=xs:dateTime('2009-09-24T11:53:23.293-05:00')] order by >> @datestart descending >> >> the results are: >> 1.5 = 1.5 seconds >> 1.6 = 3.5 seconds >> >> What changed in version 1.6 that would cause the date performance to degrade >> so much? > > Are the query times still consistently slower when you ran the query > multiple times and take the average? 1.5 seconds for a very simple query like: //element(*,my:namespace)[@property='value'] order by @datestart descending is strange already. As Alexander points out, you need to test like 10 times the query, *after* you ran the query already 10 times. This is in order to rule out FS caches warming up, lucene caches, etc etc. Also, pls, use a setLimit(1) on the query (perhaps you first need to cast to QueryImpl) to rule out the fetching of the nodes: this way, you get a better idea *how* long the lucene part takes. Again, 1.5 seconds is very long, but might be reasonable for the very first time you order on datestart as then all fieldcache's in lucene are still empty. Regards Ard > > Regards, > Alex > > -- > Alexander Klimetschek > alexander.klimetschek@day.com >