Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 33803 invoked from network); 18 Jun 2009 08:16:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Jun 2009 08:16:44 -0000 Received: (qmail 80769 invoked by uid 500); 18 Jun 2009 08:16:55 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 80730 invoked by uid 500); 18 Jun 2009 08:16:55 -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 80719 invoked by uid 99); 18 Jun 2009 08:16:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jun 2009 08:16:55 +0000 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 bdelacretaz@gmail.com designates 209.85.221.195 as permitted sender) Received: from [209.85.221.195] (HELO mail-qy0-f195.google.com) (209.85.221.195) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jun 2009 08:16:46 +0000 Received: by qyk33 with SMTP id 33so1111089qyk.15 for ; Thu, 18 Jun 2009 01:16:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=g5dxJxRgr3Ox0OtYD6Ejw7Y2ttVj9tPC6nG/KNF9wrc=; b=mUWRGKOWfKf4Z+DT/tfTpCf3kNRizIFzOl6x9SdWKDXrHF0y3T8uCdk+O/SAuqfziX 2x9zv5RfJlWFJnK6LHZTY7Ln1ovOSqzI8f0Vex1uZhtTY2/CaxwXibfzh2H14uA8k3/5 QVJOnL94J0Y1KRY12whb55clr3Z81/8IS0HJg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=YkhXnaSyNHSG50ff20BBLF+7VDOLPXLawemT9TnLcTH8FTaz8c1VGdhl+2cZZ2jSe9 ZDy0TU1U5mF3jZ3oI6PuDJg8uRrTZyLm5AEw5skd1yJrq5EY9OOdA38KWxAmQS3KMK3P HaIVKfCQ9mWiStXmWbyQ+2V50fbmCsElmQkFE= MIME-Version: 1.0 Sender: bdelacretaz@gmail.com Received: by 10.224.2.212 with SMTP id 20mr1049949qak.338.1245312985027; Thu, 18 Jun 2009 01:16:25 -0700 (PDT) In-Reply-To: <697f8380906171433o22d8e8fbi3992b3fcac26f2ad@mail.gmail.com> References: <9B333D29-9580-414C-B451-8CAB9EBA6ED1@tfd.co.uk> <697f8380906170204t5e90030bp215fbadaeee1386d@mail.gmail.com> <9BC2FD1A-9A05-4717-9F5B-E85A5B827027@tfd.co.uk> <697f8380906171433o22d8e8fbi3992b3fcac26f2ad@mail.gmail.com> Date: Thu, 18 Jun 2009 10:16:24 +0200 X-Google-Sender-Auth: abaf7e31cde15b26 Message-ID: Subject: Re: Query that sorts a large result set. From: Bertrand Delacretaz To: users@jackrabbit.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Jun 17, 2009 at 11:33 PM, Ard Schrijvers wrote: > You though have to realize that, in my computions, I assume you are just > using a Calendar value which is unique for each document. Now, if you would > find it ok to stick to Calendar values with only, say, minute granularity, > you'll significantly reduce (perhaps you won't have the issue anymore at > all...if you would use a granalarity of hour (perhaps only in the prop you > want for sorting, then 10 years will at most result in 87600 terms..not to > much anymore)) the number of unique lucene terms for the calendar values, > decreasing memory useage a lot.... Right, and maybe adding a second property P2, with a granularity of an hour, allows one to solve this without any changes to Jackrabbit: use P2 to pre-select nodes where lastModified is in a give date range, and then sort (at the application level) based on the actual lastModified property. Requires some simple application code, but I think that'd work fine. -Bertrand