Good afternoon,
I'm trying to figure out the best way to provide transactional like insertions into multiple tables in Cassandra.
I have a scenario where I need 5 inserts to occur into 5 different tables, with different partition keys, and would like all statements to be inserted or none of the statements inserted.
I have read that the batch statement can be used but the examples I've seen insert to the same table with the same partition key for all the insertions.
Can I use a batch statement to perform 5 inserts into 5 different tables even if the partition keys of those tables differ? I have also seen some examples online where the session.ExecuteAsync() is used but I don't believe I can use that as I'm using .NET Framework 4.0.
Is it safe to use the batch statement in this scenario? I realize there will be a performance hit if the partition keys differ but I'd like to make sure that all 5 statements are executed.
I'm looking for the some best practices recommendations when the partition keys of the tables differ.
Thank you for your time,
Dave Decicco