Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top