Don't call setKeyspace if connection already active in the same keyspace #79

Merged
merged 2 commits into from Oct 12, 2012

Projects

None yet

2 participants

@tjake
tjake commented Oct 11, 2012

No description provided.

tjake commented Oct 11, 2012

This fix yields a 5-10% perf gain on a tight insert/query loop since it removes an extra rpc

Contributor

Looks good but let's only set acticeKeyspace when it's set on the connection. Not every time.

tjake commented Oct 12, 2012

ok

@nberardi nberardi merged commit ca6f2d4 into fluentcassandra:master Oct 12, 2012
@nberardi nberardi was assigned Oct 18, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment