Re: Minimizing write cycles in Cassandra

6 views
Skip to first unread message
Message has been deleted

Collin Sauve

unread,
May 10, 2019, 11:17:13 AM5/10/19
to DataStax C# Driver for Apache Cassandra User Mailing List
Are you actually dealing with dynamic keyspaces and creating them during normal operation of your application?

If not, treat keyspace creation the same way you would treat any other schema changes.  Do them once as part of your deployment and then the normal running application just assumes they exist.

On Fri, May 10, 2019 at 6:43 AM Robert Jaskolla <robert....@blue-zone.de> wrote:
Hey volks,

im using the DataStax C# Driver for Apache Cassandra (CassandraCSharpDriver v3.9.0) to connect to my cassandra cluster.
Now the goal is to minimize writing cycles to my cluster. 
My Question is if its better to use Session.CreateKeyspaceIfNotExists Method to create / use my designated keyspace to work 
or would i get lesser writing cycles by checking the list of keyspaces (session.Cluster.Metadata.GetKeyspaces();) and then only creating the keyspace if its not in the list?

best regards
Robert

--
You received this message because you are subscribed to the Google Groups "DataStax C# Driver for Apache Cassandra User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to csharp-driver-u...@lists.datastax.com.
Reply all
Reply to author
Forward
0 new messages