Re: How to Retrieve all the rows from a ColumnFamily

2010-09-27 Thread Lucas Nodine
Commented your questions below. HTH - Lucas Nodine On Mon, Sep 27, 2010 at 7:35 AM, sekhar kosuru wrote: > Hi Lucas, > > Thanks for the reply. > > Please clarify me if i am wrong, this kind of filtering will work on Key > values in ColumnFamily or any other column available i

Re: How to Retrieve all the rows from a ColumnFamily

2010-09-27 Thread Lucas Nodine
Example code using C# below: Collections.Generic.List results; SlicePredicate predicate; ColumnParent cp; // Create Slice predicate = new SlicePredicate() { Slice_range = new SliceRange() { Start = _utf8.GetBytes(""), Finish = _utf8.GetBytes(""), Count = 100, Reversed = false

Re: How to Load Records From ColumnFamily by Condition Based on a Column Values.

2010-09-27 Thread Lucas Nodine
Have you looked at get_slice or multiget_slice ( http://wiki.apache.org/cassandra/API) to see if those will fit your needs? I would expect the slice_range property of the SlicePredicate might get you started. - Lucas Nodine On Mon, Sep 27, 2010 at 4:43 AM, sekhar kosuru wrote: > Hi > >

Re: Curious as to how Cassandra handles the following

2010-09-26 Thread Lucas Nodine
stributed deployment) to apply a lock to the resource, system wide. I understand the technical aspects of how that should work; however, before I begin that, does anyone have any suggestions or tips? Thanks, - Lucas Nodine On Sun, Sep 26, 2010 at 4:34 PM, Jonathan Ellis wrote: > Atomic

Curious as to how Cassandra handles the following

2010-09-26 Thread Lucas Nodine
a column within that row. I'm just considering race conditions. Thanks, Lucas Nodine

Insertion question

2010-09-24 Thread Lucas Nodine
I am working with 0.7.0-beta1 (distribution from bin on website) First, am I correct in that since beta1 keys are now bytes instead of strings? Second, should there be additional data before the key value that I specify (read below for explaination)? I am attempting to perform a batch mutation w

Re: Cassandra for graph data structure

2010-09-24 Thread Lucas Nodine
Just a tip for evaluation. Reads using Cassandra are expensive. Each link in the graph would probably require a read transaction. I have never used a graph db, but I would expect their API will be much more efficient for your needs. Just something to consider before deciding. Good luck! - Luc

Re: Not overwriting values

2010-09-21 Thread Lucas Nodine
Chris, I believe if the timestamp being written if the same or older it will not apply the write, but do not quote me on this, test it. In this case, if the timestamp value does not matter, you could simply always write with a timestamp of 1. - LN On Tue, Sep 21, 2010 at 5:58 AM, Christian Decke

Re: Connection issue with trunk using .net

2010-09-19 Thread Lucas Nodine
try this bit... TTransport transport = new TFramedTransport(new TSocket(Settings.Instance.Host.Address.ToString(), Settings.Instance.Host.Port)); TProtocol protocol = new TBinaryProtocol(transport); Cassandra.Client cassandra = new Cassandra.Client(protocol); HTH, - Lucas On Sun, Sep 19, 2010

Re: Large File Storage

2010-09-15 Thread Lucas Nodine
mpaction was fixed some time ago for 0.7 > (CASSANDRA-16). > > On Wed, Sep 15, 2010 at 10:03 AM, Lucas Nodine > wrote: > > Hello Users, > > > > I am planning a system where both metadata and data will be stored. > Usually > > it will be small file such as wor

Large File Storage

2010-09-15 Thread Lucas Nodine
Hello Users, I am planning a system where both metadata and data will be stored. Usually it will be small file such as word documents along with some specific data about the file. Sometimes, there will be a large file, possibly a few hundred meg - a gig such as video. I have read a lot about su

Re: batch_mutate silently failing in Cassandra

2010-09-07 Thread Lucas Nodine
port it. Thx, - LN On Tue, Sep 7, 2010 at 3:00 PM, Lucas Nodine wrote: > Jonathan, > > I have done it successfully with insert, but I have not tried it with > mutate. I'll give that a try tonight. > > Thanks > On Tue, Sep 7, 2010 at 2:54 PM, Jonathan Ellis wrote: >

Re: batch_mutate silently failing in Cassandra

2010-09-07 Thread Lucas Nodine
> You can also enable debug logging on the server and see if that > matches what you want the client to be doing. > > On Tue, Sep 7, 2010 at 9:11 AM, Lucas Nodine > wrote: > > Hello all, > > > > I have posted the following to Stackoverflow, but thought that I

batch_mutate silently failing in Cassandra

2010-09-07 Thread Lucas Nodine
Hello all, I have posted the following to Stackoverflow, but thought that I would also try the list. If you have any suggestions, please let me know I am working with Cassandra 0.6.5 using the thrift interface. I am trying to use the batch_mutate method call, however, when I execute it, I receiv