Joerg Hoh created OAK-10862:
-------------------------------

             Summary: Session.save() should check for pending changes first
                 Key: OAK-10862
                 URL: https://issues.apache.org/jira/browse/OAK-10862
             Project: Jackrabbit Oak
          Issue Type: Task
          Components: jcr
            Reporter: Joerg Hoh


When using JCR this pattern is quite common:

{noformat}
// do some conditional changes
if (session.hasPendingChanges()) {
  session.save();
}
{noformat}

>From an overhead perspective this should not be required; one of the first 
>checks in save() should be if there are pending changes, but i did not find 
>this on first sight in Oak.

This topic come up in the context of SLING-12264, where there was indeed a 
small improvement when not doing any change.





--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to