incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dawood abdullah <muhammed.daw...@gmail.com>
Subject Versioning in cassandra
Date Mon, 02 Sep 2013 14:36:16 GMT
Hi

I have a requirement of versioning to be done in Cassandra.

Following is my column family definition

*create table file_details(id text primary key, fname text, version int,
mimetype text);*

I have a secondary index created on fname column.

Whenever I do an insert for the same 'fname', the version should be
incremented. And when I retrieve a row with fname it should return me the
latest version row.

Is there a better way to do in Cassandra? Please suggest what approach
needs to be taken.

Regards,

Dawood

Mime
View raw message