jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexparvule...@apache.org
Subject svn commit: r1161481 - in /jackrabbit/trunk/test/performance: base/src/main/java/org/apache/jackrabbit/performance/AbstractPerformanceTest.java jackrabbit23/src/test/java/org/apache/jackrabbit/performance/PerformanceTest.java
Date Thu, 25 Aug 2011 10:20:56 GMT
Author: alexparvulescu
Date: Thu Aug 25 10:20:56 2011
New Revision: 1161481

URL: http://svn.apache.org/viewvc?rev=1161481&view=rev
Log:
JCR-2959 SQL2 QueryEngine should use Lucene for sort
 - added a new testsuite for 2.3 that enables the experimental sort

Modified:
    jackrabbit/trunk/test/performance/base/src/main/java/org/apache/jackrabbit/performance/AbstractPerformanceTest.java
    jackrabbit/trunk/test/performance/jackrabbit23/src/test/java/org/apache/jackrabbit/performance/PerformanceTest.java

Modified: jackrabbit/trunk/test/performance/base/src/main/java/org/apache/jackrabbit/performance/AbstractPerformanceTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/test/performance/base/src/main/java/org/apache/jackrabbit/performance/AbstractPerformanceTest.java?rev=1161481&r1=1161480&r2=1161481&view=diff
==============================================================================
--- jackrabbit/trunk/test/performance/base/src/main/java/org/apache/jackrabbit/performance/AbstractPerformanceTest.java
(original)
+++ jackrabbit/trunk/test/performance/base/src/main/java/org/apache/jackrabbit/performance/AbstractPerformanceTest.java
Thu Aug 25 10:20:56 2011
@@ -79,7 +79,7 @@ public abstract class AbstractPerformanc
         }
     }
 
-    private void testPerformance(String name, InputStream xml)
+    protected void testPerformance(String name, InputStream xml)
             throws Exception {
         ByteArrayOutputStream buffer = new ByteArrayOutputStream();
         try {

Modified: jackrabbit/trunk/test/performance/jackrabbit23/src/test/java/org/apache/jackrabbit/performance/PerformanceTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/test/performance/jackrabbit23/src/test/java/org/apache/jackrabbit/performance/PerformanceTest.java?rev=1161481&r1=1161480&r2=1161481&view=diff
==============================================================================
--- jackrabbit/trunk/test/performance/jackrabbit23/src/test/java/org/apache/jackrabbit/performance/PerformanceTest.java
(original)
+++ jackrabbit/trunk/test/performance/jackrabbit23/src/test/java/org/apache/jackrabbit/performance/PerformanceTest.java
Thu Aug 25 10:20:56 2011
@@ -16,6 +16,7 @@
  */
 package org.apache.jackrabbit.performance;
 
+import org.apache.jackrabbit.core.query.lucene.join.QueryEngine;
 import org.testng.annotations.Test;
 
 public class PerformanceTest extends AbstractPerformanceTest {
@@ -23,6 +24,9 @@ public class PerformanceTest extends Abs
     @Test
     public void testPerformance() throws Exception {
         testPerformance("2.3");
-    }
 
+        System.setProperty(QueryEngine.NATIVE_SORT_SYSTEM_PROPERTY, "true");
+        testPerformance("2.3-expSort", getDefaultConfig());
+        System.setProperty(QueryEngine.NATIVE_SORT_SYSTEM_PROPERTY, "false");
+    }
 }



Mime
View raw message