incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brandon Williams <dri...@gmail.com>
Subject Re: delete mutation
Date Fri, 21 May 2010 14:18:03 GMT
On Fri, May 21, 2010 at 8:55 AM, Mark Greene <greenemj@gmail.com> wrote:

> Is there a particular reason why timestamp is required to do a deletion?


Because a delete is just a write with a tombstone flag, and the write with
the highest timestamp wins.


> If i'm reading the api docs correctly, this would require a read of the
> column first correct?


No, if your column was created in the past and you want to delete it, use
the current time as the timestamp, which should be higher than whatever the
column's timestamp was.

-Brandon

Mime
View raw message