Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 18026 invoked from network); 8 Aug 2007 07:05:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Aug 2007 07:05:32 -0000 Received: (qmail 72333 invoked by uid 500); 8 Aug 2007 07:05:31 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 71957 invoked by uid 500); 8 Aug 2007 07:05:30 -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 71948 invoked by uid 99); 8 Aug 2007 07:05:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Aug 2007 00:05:30 -0700 X-ASF-Spam-Status: No, hits=-100.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; Wed, 08 Aug 2007 07:05:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2113F714168 for ; Wed, 8 Aug 2007 00:05:06 -0700 (PDT) Message-ID: <26011894.1186556705694.JavaMail.jira@brutus> Date: Wed, 8 Aug 2007 00:05:05 -0700 (PDT) From: "Jukka Zitting (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Commented: (JCR-989) Modify LazyQueryResultImpl to allow resultFetchSize to be set programmatically In-Reply-To: <19781523.1182951986078.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-989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12518354 ] Jukka Zitting commented on JCR-989: ----------------------------------- Nice work! I'm not 100% sure if we should place JCR 2.0 extensions in jackrabbit-api, after all they are still subject to change and it might well be that the interfaces will change before JCR 2.0 is final. Putting the extensions in jackrabbit-api implies that we are ready to offer backwards compatibility to these new methods even if JCR 2.0 decides to drop them or implement them in some other way. More on dev@ in a moment... > Modify LazyQueryResultImpl to allow resultFetchSize to be set programmatically > ------------------------------------------------------------------------------ > > Key: JCR-989 > URL: https://issues.apache.org/jira/browse/JCR-989 > Project: Jackrabbit > Issue Type: New Feature > Components: query > Affects Versions: 1.3 > Reporter: Christoph Kiehl > Assignee: Christoph Kiehl > Priority: Minor > Fix For: 1.4 > > Attachments: jackrabbit-api.patch, jackrabbit-core.patch > > > In our application we have a search which only shows part of a query result. We always know which part of the result needs to be shown. This means we know in advance how many results need to be fetched. I would like to be able to programmatically set resultFetchSize to minimize the number of loaded lucene docs and therefore improve the performance. > I know it is already possible to the set the resultFetchSize via the index configuration, but this number is fixed and doesn't work well in environments where you use paging for your results because if you set this number too low the query will be executed multiple times and if you set it too high too many lucene docs are loaded. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.