Joerg Hoh created OAK-12497:
-------------------------------

             Summary: Avoid reundant work in property write precondition
                 Key: OAK-12497
                 URL: https://issues.apache.org/jira/browse/OAK-12497
             Project: Jackrabbit Oak
          Issue Type: Improvement
          Components: jcr
    Affects Versions: 2.8.0
            Reporter: Joerg Hoh
            Assignee: Joerg Hoh


Property writes perform unnecessary lookups:

• \{{Property.setValue()}} and \{{Property.remove()}} construct a JCR parent 
wrapper solely to check checkout state, triggering an unnecessary primary-type 
lookup.
• \{{Node.setProperty(name, null)}} resolves the same property during both 
precondition checking and removal.

Use the parent delegate directly for checkout checks and reuse the resolved 
property within the removal operation. Preserve access-denied behavior, 
nested-operation handling, and existing checkout/OPV semantics.

This reduces per-call overhead.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to