Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best Cassandra 1.2 driver for Python, Should I forget about CQL? [closed]

I'm looking for a good driver for python:

1) Pycassa. It doesn't support CQL, and they dont think to do it soon.

2) https://code.google.com/a/apache-extras.org/p/cassandra-dbapi2/.

I thought to use cassandra-dbapi2 but here a guy says that "it doesn't support connection pooling load balance advance features". On the other hand I can use PyCassa but it doesn't support CQL. Should do I try Pycassa and forget about CQL on the client?

I don't care about losing ORM features, actually I think It could be even worse sometimes because its force your team to learn new things (new features on the ORM API which you are using) where as SQL is something that people know. Why learn a new language when you already know SQL/CQL? But It's just an opinion...

What do you think is the best option? Should I forget about CQL?

like image 260
alasarr Avatar asked Nov 04 '22 01:11

alasarr


1 Answers

Pycassa or CQL supported driver, both are client API's implementing the thrift interface, base API of cassandra, so basically which ever API you choose it will ought to have the same functionality. For every CQL implementation there is an alternative in pycassa but if are really liking pycassa and you still want to mix CQL with it, then you can execute CQL statements through pycassa using the execute_cql thrift call. And you can also check pcmanus / python-cql written by one of the cassandra committer.

like image 161
abhi Avatar answered Nov 11 '22 17:11

abhi