Add set if non-existant operation
Open
- Dominant language
- Java
- Stars
- 200
- Forks
- 73
- PR merge metrics
- No merged PRs in 30d
Description
A transactional operation to only set a value if does not exists would be useful. When this could be used, it would avoid a read/get in the transaction. This would be useful for a load transaction that checks if something does not exist. It would also be useful for implementing a queue.
I think this could be implemented in the 1st phase of two phase commit when locking row/columns. The conditional mutation that acquires the lock could do the empty check as part of its other checks.
Contributor guide
Assessment
This issue has not been assessed yet.