What is the batch limit in Cassandra?

前端 未结 3 1216
有刺的猬
有刺的猬 2020-12-05 23:12

I have a Java client that pushes (INSERT) records in batch to Cassandra cluster. The elements in the batch all have the same row key, so they all will be placed in the same

3条回答
  •  庸人自扰
    2020-12-05 23:59

    I fixed this issue by changing the CHUNKSIZE to a lower value (for exemple 1) https://docs.datastax.com/en/cql/3.1/cql/cql_reference/copy_r.html

    COPY mytable FROM 'mybackup' WITH CHUNKSIZE = 1;

    The operation is much slower but at least it work now

提交回复
热议问题