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 "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2015/09/01 15:04:46 UTC

[jira] [Updated] (OAK-3018) Use batch-update in backgroundWrite

     [ https://issues.apache.org/jira/browse/OAK-3018?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marcel Reutegger updated OAK-3018:
----------------------------------
    Fix Version/s:     (was: 1.3.7)
                   1.3.8

> 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
>              Labels: performance
>             Fix For: 1.3.8
>
>
> (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)