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

Added client_compression setting and pass it to driver #304

Merged
merged 1 commit into from Jun 22, 2016

Conversation

jhannus
Copy link

@jhannus jhannus commented Jun 14, 2016

Adds cassandra client compression to Cequel gem.

This PR adds a new setting to the config to allow compression. It basically just passes it along to the Cassandra driver.

See: http://datastax.github.io/ruby-driver/features/#compression for more info.

@jhannus jhannus changed the title Added client_compression setting and passes it to driver is set Added client_compression setting and passes it to driver Jun 14, 2016
#
def client_compression
@client_compression
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this in addition to the attr reader defined on line 36?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be honest, I don't think so. I added this to follow convention in keyspace.rb where other configuration options did the same.

@jhannus
Copy link
Author

jhannus commented Jun 15, 2016

Thanks the comments I'll address these later today after lunch 👍

@jhannus jhannus force-pushed the client-compression branch 6 times, most recently from 618d205 to 0ce5e5b Compare June 15, 2016 20:41
@jhannus
Copy link
Author

jhannus commented Jun 15, 2016

@pezra I removed the mock all together since it was causing some conflicts in the rest of the test suite. I also removed the redundant getter for client_compression. Thanks for your feedback!

@jhannus jhannus changed the title Added client_compression setting and passes it to driver Added client_compression setting and pass it to driver Jun 15, 2016
@pezra pezra merged commit c0ad599 into cequel:master Jun 22, 2016
@pezra
Copy link
Contributor

pezra commented Jun 22, 2016

Merged. Thanks for the improvement.

@jhannus
Copy link
Author

jhannus commented Jun 22, 2016

👍

@pezra
Copy link
Contributor

pezra commented Jun 28, 2016

released in 1.10.0

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

Successfully merging this pull request may close these issues.

None yet

2 participants