jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Reutegger (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OAK-8028) Avoid unnecessary query in UnsavedModifications.persist()
Date Wed, 06 Feb 2019 13:07:00 GMT
Marcel Reutegger created OAK-8028:

             Summary: Avoid unnecessary query in UnsavedModifications.persist()
                 Key: OAK-8028
                 URL: https://issues.apache.org/jira/browse/OAK-8028
             Project: Jackrabbit Oak
          Issue Type: Improvement
          Components: documentmk
            Reporter: Marcel Reutegger
            Assignee: Marcel Reutegger
             Fix For: 1.12

Towards the end of a background update, the method {{UnsavedModifications.persist()}} writes
the {{lastWrittenRootRev}} to the clusterNode entry. Before the write, it checks whether the
entry exists for its clusterId. This is unnecessary because {{findAndUpdate()}} will only
perform the update when the document exists.

This message was sent by Atlassian JIRA

View raw message