Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails ORM for Cassandra

this question may have been asked many times, but could not find any suitable answer. Is there any ORM on Rails3 for Cassandra.

I have searched google and found following.

  • fauna/cassandra - cassandra client for rails
  • carbonfive/active_column - last updated 13-may-2011
  • winebarrel/activerecord-cassandra-adapter - last updated 5 months ago
  • scrum8/cassandrb - last updated 01-mar-2011
  • NZKoz/cassandra_object - last updated 30-may-2010
  • astrails/smallrecord - last updated 14-apr-2010
  • azati/ActiveCassandra - last updated 03-jun-2010

Please help me out in deciding which one I should go with.

Thanks

like image 280
Sumit Garg Avatar asked May 27 '11 21:05

Sumit Garg


4 Answers

First, you can put anything not updated in 2011 on the "don't bother" list. 0.7 was released in January 2011 and has some API incompatiblities with earlier clients.

Of the ones left, fauna/cassandra is a lower-level client (I suspect most of the others use it as a starting point), which leaves a very short list left to evaluate. Based purely on commit activity I suspect active_column is your best bet.

For 0.8.1 (it won't be ready in time to ship with 0.8.0) we're working on a CQL driver that we hope will provide Rails compatibility out of the box. That will be in the Cassandra source tree under drivers/ when it's ready.

like image 26
jbellis Avatar answered Nov 17 '22 11:11

jbellis


Update: February 2013

  • data-axle/cassandra_object aka gotime-cassandra_object gem
  • brewster/cequel aka cequel gem
  • twitter/cassandra - a ruby client for Cassandra

and if you're using Datastax:

  • jasonmk/datastax_rails - aka datastax_rails gem
like image 177
mccannf Avatar answered Nov 17 '22 12:11

mccannf


Update: June 2014

Building off of mccannf's suggestions, I can personally verify that cequel is a top-notch ORM that has an excellent, straightforward API that is ActiveRecord-like while being slightly more transparent (less behind-the-scenes magic than AR). It is currently being maintained as of June 2014.

like image 7
user3181113 Avatar answered Nov 17 '22 11:11

user3181113


Update: June 2013

hsgubert/cassandra_migrations

It gives access to Cassandra through CQL3 and integrates with rails to manage schema with migrations.

like image 4
hsgubert Avatar answered Nov 17 '22 12:11

hsgubert