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 2019/02/06 13:38:00 UTC

[jira] [Resolved] (OAK-8028) Avoid unnecessary query in UnsavedModifications.persist()

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

Marcel Reutegger resolved OAK-8028.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.11.0

Ok, thanks.

I removed the check in trunk: http://svn.apache.org/r1853077

> 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
>            Priority: Minor
>             Fix For: 1.12, 1.11.0
>
>
> 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
(v7.6.3#76005)