jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cko...@apache.org
Subject svn commit: r1829246 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java
Date Mon, 16 Apr 2018 09:51:44 GMT
Author: ckoell
Date: Mon Apr 16 09:51:44 2018
New Revision: 1829246

URL: http://svn.apache.org/viewvc?rev=1829246&view=rev
Log:
Debug Log

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java?rev=1829246&r1=1829245&r2=1829246&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/MultiIndex.java
Mon Apr 16 09:51:44 2018
@@ -435,10 +435,14 @@ public class MultiIndex {
             executeAndLog(new Start(transactionId));
 
 
+            long time = System.currentTimeMillis();
             for (NodeId id : remove) {
                 executeAndLog(new DeleteNode(transactionId, id));
             }
+            time = System.currentTimeMillis() - time;
+            log.debug("{} documents deleted in {}ms", remove.size(), time);
 
+            time = System.currentTimeMillis();
             for (Document document : add) {
                 if (document != null) {
                     executeAndLog(new AddNode(transactionId, document));
@@ -446,6 +450,8 @@ public class MultiIndex {
                     checkVolatileCommit();
                 }
             }
+            time = System.currentTimeMillis() - time;
+            log.debug("{} documents added in {}ms", add.size(), time);
             executeAndLog(new Commit(transactionId));
         } finally {
             synchronized (updateMonitor) {



Mime
View raw message