[
https://issues.apache.org/jira/browse/OAK-3578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14989701#comment-14989701
]
Julian Reschke commented on OAK-3578:
-------------------------------------
I did a few checks using the TimingDS wrapper in oak-run, and found (in those
tests) only few calls to "void update(...)". It seems we need more evidence
that these calls are frequent to make this change...
> DocumentStore API: introduce void variant of findAndUpdate
> ----------------------------------------------------------
>
> Key: OAK-3578
> URL: https://issues.apache.org/jira/browse/OAK-3578
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: documentmk
> Reporter: Julian Reschke
> Assignee: Julian Reschke
> Attachments: OAK-3578.diff
>
>
> {{findAndUpdate}} returns the previous state of the document (when
> applicable). However, this information is not always needed by the caller and
> may be expensive to obtain.
> Thus split the API into two different methods, so that DocumentStore
> implementations can optimize the void variant.
> Proposal: {{void update}} and {{T findAndUpdate}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)