Grouping mutations

2011-09-28 Thread altanis
there is, I can't find it, but I can't imagine why it isn't implemented that way, I feel I am missing something. Please explain! Alexander Altanis

Read asynchronously from multiple nodes

2011-07-18 Thread altanis
I am developing a new API call which will read results from multiple nodes. I am first sending a message to each node and maintain a list of handlers, one for each message. However, after all requests are sent, I can only call the handlers' get() function sequentially, wait for each to finish and

How do secondary indices work

2011-02-08 Thread altanis
index data? Thanks in a advance, Alexander Altanis

Re: Retrieve Rows for specified keys in order

2011-02-01 Thread altanis
Any help on this? Alexander > I am trying to retrieve the Row objects for a List of keys, in > StorageProxy. I accomplish this in two phases: at first I make a List of > ReadCommands, one for each key, and then I give this list to > readProtocol(). > > My problem is that the List returned by read

Retrieve Rows for specified keys in order

2011-01-25 Thread altanis
I am trying to retrieve the Row objects for a List of keys, in StorageProxy. I accomplish this in two phases: at first I make a List of ReadCommands, one for each key, and then I give this list to readProtocol(). My problem is that the List returned by readProtocol() has many Rows in different ind

Re: Send reads concurrently

2011-01-14 Thread altanis
I found the solution to this problem. I was sending the same message to all nodes, with the same ID, and that was apparently causing problems somehow. It is solved anyway. Alexander > Thank you for your answer, however I am pretty sure that's not it. I have > a small-two node cluster for developm

Re: Send reads concurrently

2011-01-13 Thread altanis
Thank you for your answer, however I am pretty sure that's not it. I have a small-two node cluster for development testing, and I have loaded it with data in a way that responses to my queries usually have about 5 short rows (which I think is not very much). First of all, if I do it like this,

Send reads concurrently

2011-01-12 Thread altanis
Hello, I am reading through getRangeSlice() in StorageProxy, and I am trying to do roughly the same thing for a join operation I am trying to implement in Cassandra. I see that getRangeSlice() loops through all available ranges, and for each range, it sends a request to the applicable nodes and t

Re: Help with creating a thrift call

2010-10-14 Thread altanis
Thank you, I used TFramedTransport as per your suggestion and it works now! Maybe I should write this up in the wiki? Could you suggest a suitable page? Alexander > On Wed, Oct 13, 2010 at 08:21, wrote: >> I want to create a thrift call and would like to know how to go about >> it. >> >> I thi

Help with creating a thrift call

2010-10-13 Thread altanis
I want to create a thrift call and would like to know how to go about it. I think what I should do is this: - add my call to cassandra.thrift (eg. string test(1:required string arg), within 'service Cassandra') - run thrift -gen java cassandra.thrift - write a corresponding function in service/

Creating secondary indices after startup

2010-10-07 Thread altanis
short human-readable description, as the source is confusing me), and 2) how I can go about implementing support for creating indices on a live cluster (if it can be done) Alexander Altanis

Re: Creating two instances in code

2010-07-30 Thread altanis
ld have Cassandra build a DatabaseDescriptor instance at startup, > > which could be a class variable of some basic class, and then replace all > > instances of DatabaseDescriptor.someFunction() with method calls on the > > object. Will that be enough or are there many more sing

Re: Creating two instances in code

2010-07-30 Thread altanis
of some basic class, and then replace all instances of DatabaseDescriptor.someFunction() with method calls on the object. Will that be enough or are there many more singletons in the code? Any different suggestions? Alexander Altanis > The resource file (cassandra.yaml) is statically defi

Creating two instances in code

2010-07-29 Thread altanis
puter, as I want the second node to have access to information from the first node, such as node load for the first cluster and such (plus even running two separate cassandra instances on the same node seems to require workarounds and hacks). Alexander Altanis

Re: Cassandra Multiple DataCenter Suitability - why?

2010-06-17 Thread altanis
-DC rack awareness because Zookeeper is a bit heavy >> on the bandwidth. >> >> Anyway, just to sum it up, my question is this: please explain in brief >> the reasons why Cassandra is well suited for multi-DC environments. >> >> Alexander Altanis >> > >

Cassandra Multiple DataCenter Suitability - why?

2010-06-17 Thread altanis
ra is well suited for multi-DC environments. Alexander Altanis