How to multi insert rows in cassandra

前端 未结 5 2333
北海茫月
北海茫月 2021-02-18 23:29

What is the most efficient way of inserting multiple rows in cassandra column family. Is it possible to do this in a single call.

Right now my approach is to addinsert m

5条回答
  •  南方客
    南方客 (楼主)
    2021-02-19 00:08

    PreparedStatement and binding values might be a better option. Below are a couple of good articles on uses and misuses of Batch:

    Cassandra: Batch loading without the Batch keyword.

    Using and misusing batches

提交回复
热议问题