jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r488178 - in /jackrabbit/trunk/jackrabbit-core/src/main: config/repository.xml java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java
Date Mon, 18 Dec 2006 09:36:32 GMT
Author: mreutegg
Date: Mon Dec 18 01:36:31 2006
New Revision: 488178

URL: http://svn.apache.org/viewvc?view=rev&rev=488178
Log:
JCR-651: Improve performance for queries with large result sets
Changed default value to Integer.MAX_VALUE to ensure correct return value for getSize()

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/config/repository.xml
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/config/repository.xml
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/config/repository.xml?view=diff&rev=488178&r1=488177&r2=488178
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/config/repository.xml (original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/config/repository.xml Mon Dec 18 01:36:31 2006
@@ -104,6 +104,7 @@
               a lot of nodes set to 'false'.
             - resultFetchSize: The number of results the query handler should
               initially fetch when a query is executed.
+              Default value: Integer.MAX_VALUE (-> all)
 
             Note: all parameters (except path) in this SearchIndex config are default
             values and can be omitted.
@@ -124,7 +125,7 @@
             <param name="queryClass" value="org.apache.jackrabbit.core.query.QueryImpl"/>
             <param name="idleTime" value="-1"/>
             <param name="respectDocumentOrder" value="true"/>
-            <param name="resultFetchSize" value="50" />
+            <param name="resultFetchSize" value="2147483647"/>
         </SearchIndex>
     </Workspace>
 

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java?view=diff&rev=488178&r1=488177&r2=488178
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java
Mon Dec 18 01:36:31 2006
@@ -184,9 +184,9 @@
     /**
      * The number of documents that are pre fetched when a query is executed.
      * <p/>
-     * Default value is: <code>50</code>.
+     * Default value is: {@link Integer#MAX_VALUE}.
      */
-    private int resultFetchSize = 50;
+    private int resultFetchSize = Integer.MAX_VALUE;
 
     /**
      * Indicates if this <code>SearchIndex</code> is closed and cannot be used



Mime
View raw message