| Message view | « Date » · « Thread » |
|---|---|
| Top | « Date » · « Thread » |
| From | Ian Rogers <ian.rog...@contactclean.com> |
| Subject | atomic test-or-set |
| Date | Tue, 05 Oct 2010 15:23:26 GMT |
Does Cassandra have an atomic test-or-set operation? That is, I want to check to see if a key has a value and, if not, set it to something. But it must be an atomic operation - I can't do a separate fetch and then set from the application as that creates a possible race condition with another application. Equivalent to the SQL "update foo set grum = 'bang' where isnull(grum) ..." Any thoughts how to do this? Cheers, Ian | |
| Mime |
|
| View raw message | |