Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why should i use django-cassandra-engine over cassandra-drive? #54

Closed
vbrchn opened this issue Mar 11, 2016 · 2 comments
Closed

why should i use django-cassandra-engine over cassandra-drive? #54

vbrchn opened this issue Mar 11, 2016 · 2 comments

Comments

@vbrchn
Copy link

vbrchn commented Mar 11, 2016

Based on issues raised on this forum and based on my experience, django admin module, user authentication doesn't work with django-cassandra-engine if cassandra is the only backend. May i know what are reasons for using django-cassandra-engine over cassandra-drive. sorry for the dumb question.

@r4fek
Copy link
Owner

r4fek commented Mar 12, 2016

Hi @vbrchn!

It's of course not a dumb question, I'll try to explain it to you. Basically Django ORM is created for relational databases and Cassandra is very specific noSQL database. It's nearly impossible to plug into Django ORM and execute efficient queries to Cassandra. Also modeling data for Cassandra is very different from we're all used to. That's why I decided to use cassandra-driver and Cqlengine as object mapper, which is maintained by DataStax, and very well documented.

This way you can use Django apps you're used to (auth, admin, contenttypes, etc.) along with apps dedicated to cassandra for better performance. Sometimes you don't need to use Django apps and then (and only then) use django-cassandra-engine as default (primary) database backend.

If you have further questions don't hesitate to ask.

@vbrchn vbrchn closed this as completed Mar 21, 2016
@vbrchn
Copy link
Author

vbrchn commented Mar 21, 2016

Not working out for me without support for admin pages for models stored in cassandra. thanks for your help. I wish you all the best.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants