You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Stefan Egli (JIRA)" <ji...@apache.org> on 2015/06/22 15:24:00 UTC
[jira] [Created] (OAK-3018) Use batch-update in backgroundWrite
Stefan Egli created OAK-3018:
--------------------------------
Summary: Use batch-update in backgroundWrite
Key: OAK-3018
URL: https://issues.apache.org/jira/browse/OAK-3018
Project: Jackrabbit Oak
Issue Type: Improvement
Components: mongomk
Reporter: Stefan Egli
Fix For: 1.3.4
(From an earlier [post on the list|http://markmail.org/thread/mkrvhkfabit4osli]) The DocumentNodeStore.backgroundWrite goes through the heavy work of updating the lastRev for all pending changes and does so in a hierarchical-depth-first manner. Unfortunately, if the pending changes all come from separate commits (as does not sound so unlikely), the updates are sent in individual update calls to mongo (whenever the lastRev differs). Which, if there are many changes, results in many calls to mongo.
OAK-2066 is about extending the DocumentStore API with a batch-update method. That one, once available, should thus be used in the {{backgroundWrite}} as well.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)