I'm using the ruby-driver gem, trying to do batch inserts with prepared statements.
I have what amounts to a post request that should write 4000 records to Cassandra (1000 each to 4 different tables).
I am doing an unlogged_batch of 50 records each. I'm wondering if there is a more efficient way to do batch statements.
We're seeing 23% of the time spent in unlogged_batch and 21% of the time in execute_async. Underneath both of those is Cassandra::Protocol::Coder#write_value_v1. It appears to be converting data types twice.
Our target is < 1 second and these two methods amount to 40% of 1.8 seconds.