Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ Remove global singleton, by passing around context when possible and by using a clojure for Rend New Cassandra handler creation. Purpose it not recreate a new cnx toward cassandra each time this handler is invoked. + Move out from the flaky unlogged batch for SETs. Problem is that managing size of the batch is tricky as it depends not on the number of elements but of the bytes size of the batch + Instead of relying a single buffer for the batched SETs. Use a fan out approach where goroutines are responsible for sending single SET command toward cassandra. If perf decrease we can re-use the unlogged batch but we a way lot smaller SET buffer, thus avoiding problem from above. + Made shutdown of Memendra thread safe + Add a custom ConvictionPolicy to avoid apache/cassandra-gocql-driver#915 + Prepare statement in the cassandra context to avoid allocating a new string every request with fmt.format() + Replace Bind(...) calls by Query in new goCQL version (simplify the code)
- Loading branch information