jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r794613 - /jackrabbit/branches/1.x/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/lucene/IndexingAggregateTest.java
Date Thu, 16 Jul 2009 10:03:49 GMT
Author: jukka
Date: Thu Jul 16 10:03:48 2009
New Revision: 794613

URL: http://svn.apache.org/viewvc?rev=794613&view=rev
Log:
1.x: Remove the disabled performance test that was using JCR 2.0 methods. (JCR-2191)

Modified:
    jackrabbit/branches/1.x/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/lucene/IndexingAggregateTest.java

Modified: jackrabbit/branches/1.x/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/lucene/IndexingAggregateTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/branches/1.x/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/lucene/IndexingAggregateTest.java?rev=794613&r1=794612&r2=794613&view=diff
==============================================================================
--- jackrabbit/branches/1.x/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/lucene/IndexingAggregateTest.java
(original)
+++ jackrabbit/branches/1.x/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/lucene/IndexingAggregateTest.java
Thu Jul 16 10:03:48 2009
@@ -145,31 +145,6 @@
         checkResultSequence(q.execute().getRows(), (Node[]) expected.toArray(new Node[expected.size()]));
     }
 
-    public void disabled_testPerformance() throws RepositoryException {
-        createNodes(testRootNode, 10, 4, 0, new NodeCreationCallback() {
-            public void nodeCreated(Node node, int count) throws
-                    RepositoryException {
-                node.addNode("child").setProperty("property", "value" + count);
-                // save once in a while
-                if (count % 1000 == 0) {
-                    session.save();
-                    System.out.println("added " + count + " nodes so far.");
-                }
-            }
-        });
-        session.save();
-
-        String xpath = testPath + "//*[child/@property] order by child/@property";
-        for (int i = 0; i < 3; i++) {
-            long time = System.currentTimeMillis();
-            Query query = qm.createQuery(xpath, Query.XPATH);
-            query.setLimit(20);
-            query.execute().getNodes().getSize();
-            time = System.currentTimeMillis() - time;
-            System.out.println("executed query in " + time + " ms.");
-        }
-    }
-
     private static Node addFile(Node folder, String name, long lastModified)
             throws RepositoryException {
         Node file = folder.addNode(name, "nt:file");



Mime
View raw message