jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Reschke (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (OAK-3578) DocumentStore API: introduce void variant of findAndUpdate
Date Wed, 04 Nov 2015 13:02:27 GMT

    [ https://issues.apache.org/jira/browse/OAK-3578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14989503#comment-14989503

Julian Reschke edited comment on OAK-3578 at 11/4/15 1:02 PM:

WIP - patch that separates the two methods, but does not attempt any optimizations

was (Author: reschke):
WIP: patch separating the two types of invocations

> 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 optimized the void variant.
> Proposal: {{void updateConditional}} and {{T findAndUpdateConditional}}.

This message was sent by Atlassian JIRA

View raw message