kreynolds / cassandra-cql

DBI-like CQL driver for Cassandra in Ruby
Apache License 2.0
67 stars 43 forks source link

Being able to toggle constancy level during execute statement #67

Closed astronomy88 closed 10 years ago

astronomy88 commented 10 years ago

Would like to have flexibility to configure the consistency level during CQL execute.

For instance, in our use case we have the consistency level set at LOCAL_QUORUM for writes, and ONE for reads.If a user doesn't bother with consistency levels, the default option is QUORUM (which would be the setting that would occur before this change)

kreynolds commented 10 years ago

And its a pain I know, but I'll need tests for the changes as well. I appreciate the effort though, almost there!

astronomy88 commented 10 years ago

Hey Kelley - tried to follow along with the suggestions! Thanks for taking the time to go through it!

codekitchen commented 10 years ago

@astronomy88 do you think you'll be writing the tests for this change soon? if not I may take a stab at it, having this in the gem is the last thing we need before we can upgrade our cassandra clusters.

astronomy88 commented 10 years ago

@codekitchen Sorry, looks like my schedule will be a little hectic that next few days. If you don't mind taking a stab at it, that would be great! Otherwise, I might be able to try in a couple weeks!

codekitchen commented 10 years ago

No worries, thanks for doing the bulk of the work. I can't amend this pull request so I started a new one at https://github.com/kreynolds/cassandra-cql/pull/71