thomasmueller commented on code in PR #1577:
URL: https://github.com/apache/jackrabbit-oak/pull/1577#discussion_r1675841951


##########
oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/tree/TreeStore.java:
##########
@@ -166,4 +171,28 @@ public Store getStore() {
         return store;
     }
 
+    @Override
+    public String getStorePath() {
+        return directory.getAbsolutePath();
+    }
+
+    @Override
+    public long getEntryCount() {
+        return entryCount;
+    }
+
+    public void setEntryCount(long entryCount) {
+        this.entryCount = entryCount;
+    }
+
+    @Override
+    public String getIndexStoreType() {
+        return STORE_TYPE;
+    }
+
+    @Override
+    public boolean isIncremental() {
+        return true;

Review Comment:
   To update the tree store incrementally, we can use log-structured merges, 
using Session.checkpoint() / Session.flush(). In theory, this is much more 
efficient than the IncrementalFlatFileStore, if done correctly. Specially if 
there are few changes. This is already implemented in the tree store, but needs 
to be "wired" correctly. 
   
   But I think I will not yet do that just yet, but instead concentrate on 
getting the basics working correctly (right now, e.g. the cache size is in 
number of entries instead of memory used... this can lead to OOME if we have 
very unevenly sizes pages). Also, I need to port some unit tests.
   
   So I'll set it to "false" currently.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to