Modeling question

2009-11-26 Thread gabriele renzi
hi everyone, in my team, we are considering using cassandra for our project in place of a (pseudo)relational solution, but I am not sure on how we should handle a couple of modeling issues. Basically, my problem is how to bring into cassandra a db where elements are in the form primary,

Re: Modeling question

2009-11-26 Thread gabriele renzi
On Thu, Nov 26, 2009 at 7:12 PM, Anthony Molinaro antho...@alumni.caltech.edu wrote: Unless you are using order preserving partitioning which might or might not be what you want, you won't be able to do a full scan.  Instead you should probably have two column families, one keyed by primary,

Re: Questions about optmizing interaction with Cassandra

2009-12-11 Thread gabriele renzi
2009/12/11 Joseph Bowman bowman.jos...@gmail.com: Before I start working on something like this, I need to ask, is it even necessary? Would it really provide a performance increase worth the added complexity and dependence on things like memcached? I recall someone at Digg gave a

Re: OOM Exception

2009-12-13 Thread gabriele renzi
On Sun, Dec 13, 2009 at 7:28 PM, Stu Hood stuart.h...@rackspace.com wrote: With 248G per box, you probably have slightly more than 1/2 billion items? One current implementation detail in Cassandra is that it loads 128th of the index into memory for faster lookups. This means you might have

Re: create only - no update

2009-12-16 Thread gabriele renzi
On Wed, Dec 16, 2009 at 12:34 AM, Brandon Williams dri...@gmail.com wrote: On Tue, Dec 15, 2009 at 5:19 PM, Brian Burruss bburr...@real.com wrote: can the cassandra client (java specifically) specify that a particular put should be create only, do not update?  If the value already exists in

Re: create only - no update

2009-12-16 Thread gabriele renzi
On Wed, Dec 16, 2009 at 10:16 PM, Jonathan Ellis jbel...@gmail.com wrote: On Wed, Dec 16, 2009 at 2:31 PM, gabriele renzi rff@gmail.com wrote: is there a fundamental reason for not being able to provide a putIfAbsent-like abstraction in cassandra? Yes: there is no global master

Re: Is Cassandra suitable for multi criteria search engine

2009-12-17 Thread gabriele renzi
On Thu, Dec 17, 2009 at 7:48 PM, David MARTIN dmartin@gmail.com wrote: Hi, That's what I was thinking. And I'm glad to read Apache solr in your answer as it is one of my main leads. as a happy solr user, I second the suggestion, lucene (the technology behind solr) handles a number of

Re: How to unit test my code calling Cassandra with Thift

2010-01-20 Thread gabriele renzi
On Wed, Jan 20, 2010 at 4:39 PM, Josh j...@schulzone.org wrote: I havn't done this in java but so this may sound .netish but: When I'm writing unit tests for stuff like this I usually mock the datastore.  A quick google search makes me think thrift would be pretty easy to mock here.  That