I am working with Scylladb/Cassandra where I am getting some stuff out of it using Datastax C# driver.
Below is my code which interacts with Scylladb and in my
GetAsync method I am extracting stuff from three different tables. We did some performance testing and it looks like we are seeing performance issues while getting data out of the db on the client side but on the server side latencies looks normal.
Earlier we were using
IN clause queries and we found out that performance is not good with that so we change the client code to do multiple async calls in parallel and now server side latencies looks good but client is looking bad now so I am assuming I am not doing it correctly.
I am using latest datastax c# driver to interact with scylla/cassandra.
Cluster Info:
- We have a 6 nodes cluster all in one dc with RF as 3.
- We read/write as local quorum.
- And we have row caching enabled as well.
Few questions:
- Is there anything wrong with the way I am making connections to scylla/cassandra cluster in the constructor? Any settings I have used it in a wrong way or anything I should add to improve the performance?
- Also is there anything wrong in my GetAsync method which can cause some performance issues? Because I am doing few things in that method to get all my data from three different tables by doing multiple async calls so maybe I messed up something there and wrote in a bad way which can cause performance issues?