How to multi insert rows in cassandra

前端 未结 5 2328
北海茫月
北海茫月 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-18 23:55

    you can add your multiple insert statements into a file and execute the file with 'cqlsh -f'.

    You can also perform Batch insert with CQL into cassandra as described in below link: http://www.datastax.com/documentation/cassandra/1.2/index.html#cassandra/cql_reference/batch_r.html

提交回复
热议问题