I don't understand how to achieve very simple goal with Spring Data Cassandra.
I want to execute an "INSERT" statement multiple times with different parameter values. I don't have mapped domain class at the moment, so I use CqlOperations interface provided by Spring Data.
When I just use execute(String cql, Object... args), Cassandra driver complains about "Re-preparing already prepared query is generally an anti-pattern and will likely affect performance. Consider preparing the statement only once". Because Spring Data uses SimplePreparedStatementCreator. But I don't see any way to tell Spring Data to use CachedPreparedStatementCreator instead. All I see is execute(PreparedStatementCreator psc) method which does not allow me to provide parameters values.
So, is there any way to either tell Spring Data to use proper statement cache or to achieve something similar to execute(PreparedStatementCreator, Object...)?