I am using java datastax client to insert data into cassandra. Right now I am iterating through list of objects and inserting row by row. There are different amount of rows for each case, but speed is unacceptable for me. Could you please suggest ways of speed improvement? Do you think BATCH insert might help? What about multi-threading insertion?
Thanks for any help!
This is my table.
CREATE TABLE StatisticsKeyspace.HourlyStatistics(
KeywordId text,
Date timestamp,
HourOfDay int,
Impressions int,
Clicks int,
AveragePosition double,
ConversionRate double,
AOV double,
AverageCPC double,
Cost double,
Bid double,
PRIMARY KEY(KeywordId, Date, HourOfDay)
);
CREATE INDEX ON StatisticsKeyspace.HourlyStatistics(Date);