Currently I have 20 million of records and I want to insert it to my table in Cassandra db. Each record will be around 1KB of size.
Currently what I'm doing is for each record, I make a PreparedStatement (com.datastax.driver.core) and execute it to transfer the data to the table (via com.datastax.driver.core.Sessions).
The whole process takes around 5 to 6 hours to finish. I have 03 nodes for cassandra (using HHDs). Up to my understanding, what I'm doing is serial inserting operation.
My question will be, is there anything I can do to speed up the whole inserting process?