Knotis / djangocassandra

Cassandra support for the Django web framework
BSD 3-Clause "New" or "Revised" License
12 stars 4 forks source link

Any support for bach queries ? #105

Open mrrfrog opened 6 years ago

mrrfrog commented 6 years ago

Hey bro

I found cassandra batch query is used for atomic transactions.

https://docs.datastax.com/en/cql/3.1/cql/cql_reference/batch_r.html

and in django for running multi queries in one batch we can use something like this code

with transaction.commit_manually:
    for row in rows:
        row.modify()
    transaction.commit()

btw how can I achieve to something like this ?

sethdenner commented 6 years ago

I think I will probably need to add support. I would love to add this feature. I will see if I can find time to figure out exactly what work is involved in adding support for this.

[image: photo] Seth Denner Chief Architecht / VP of Engineering t: 206.450.7180 | e: seth@knotis.com

On Sat, Oct 21, 2017 at 2:04 AM, Baltazar notifications@github.com wrote:

Hey bro

I found cassandra batch query is used for atomic transactions.

https://docs.datastax.com/en/cql/3.1/cql/cql_reference/batch_r.html

and in django for running multi queries in one batch we can use something like this code

with transaction.commit_manually: for row in rows: row.modify() transaction.commit()

btw how can I achieve to something like this ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Knotis/djangocassandra/issues/105, or mute the thread https://github.com/notifications/unsubscribe-auth/ABpt-w4JrPpGV24fii-ihe34lM41OnHYks5subOQgaJpZM4QBfsm .