cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Schuller <peter.schul...@infidyne.com>
Subject Re: Preventing an update of a CF row
Date Wed, 20 Oct 2010 17:28:07 GMT
> Always specify some constant value for timestamp. Only 1st insertion with that
> timestamp will succeed. Others will be ignored, because will be considered
> duplicates by cassandra.

Just be aware that this limits you in several ways in terms of your
data model. For examle, if you ever need to remove a value and then
re-write it, you have to up the timestamp on your inserts in order for
it to be re-inserted. Same thing if you sometimes need to actually
overwrite said value in some different context than the concurrent
writer case you're trying to solve.

-- 
/ Peter Schuller

Mime
View raw message