You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "James Taylor (JIRA)" <ji...@apache.org> on 2016/08/16 01:47:20 UTC
[jira] [Updated] (PHOENIX-2909) Surface checkAndPut through UPDATE
support
[ https://issues.apache.org/jira/browse/PHOENIX-2909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Taylor updated PHOENIX-2909:
----------------------------------
Summary: Surface checkAndPut through UPDATE support (was: Support compilation to atomic increment for non transactional tables)
> Surface checkAndPut through UPDATE support
> ------------------------------------------
>
> Key: PHOENIX-2909
> URL: https://issues.apache.org/jira/browse/PHOENIX-2909
> Project: Phoenix
> Issue Type: Bug
> Reporter: James Taylor
>
> We could potentially recognize updates to the same column in a SQL statement and compile them into either a check and put or increment call.
> For example, the following could use increment or a get/put under row lock to perform the row update atomically
> {code}
> UPSERT INTO my_table(pk1, pk2, counter) SELECT pk1, pk2, counter + 1 FROM my_table;
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)