Re: Versioning in cassandra

2013-09-04 Thread dawood abdullah
write and does an atomic append, > even if multiple maps are being updated. It also defers deletions via ttl's > and a separate, manageable queue for 'cleanup' of large maps. > > I think the most important word in my reply is: 'test'. > > Cheers, > &

Re: Versioning in cassandra

2013-09-04 Thread dawood abdullah
t;> values ('f2', 'd1', '2011-03-06', 'pdf', 'f2 file', 'file1'); >>> insert into file (id, parentid, version, contenttype, descr, name) >>> values ('f2', 'd1', '2011-03-05', 'pdf&#x

Re: Versioning in cassandra

2013-09-03 Thread dawood abdullah
se for the first and third record there exists a latest version, for the combination of id and parentid. I am confused If at all this is achievable, please suggest. Dawood On Tue, Sep 3, 2013 at 10:58 PM, Vivek Mishra wrote: > create secondary index over parentid. > OR > make it

Re: Versioning in cassandra

2013-09-03 Thread dawood abdullah
7;yyy'. Please suggest how can this query be achieved. Dawood On Tue, Sep 3, 2013 at 12:43 AM, dawood abdullah wrote: > In my case version can be timestamp as well. What do you suggest version > number to be, do you see any problems if I keep version as counter / > timestamp ? &g

Gradle script to execute cql3 scripts

2013-09-03 Thread dawood abdullah
I have a requirement to execute CQL3 scripts through Gradle, do we have any cassandra plugin for Gradle to do the same or is there any other way I can execute CQL3 scripts during the build itself. Please suggest. Dawood

Re: Versioning in cassandra

2013-09-02 Thread dawood abdullah
In my case version can be timestamp as well. What do you suggest version number to be, do you see any problems if I keep version as counter / timestamp ? On Tue, Sep 3, 2013 at 12:22 AM, Jan Algermissen wrote: > > On 02.09.2013, at 20:44, dawood abdullah > wrote: > > > Req

Re: Versioning in cassandra

2013-09-02 Thread dawood abdullah
provision to revert to back any old version whenever required. Regards, Dawood On Mon, Sep 2, 2013 at 10:47 PM, Jan Algermissen wrote: > Hi Dawood, > > On 02.09.2013, at 16:36, dawood abdullah > wrote: > > > Hi > > I have a requirement of versioning to be done in Cassand

Versioning in cassandra

2013-09-02 Thread dawood abdullah
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