I am using cassandra 1.2.1. and datastax java driver 1.0.4
I have to add multiple record. I am doing as below
PreparedStatement statement = session.prepare("INSERT INTO domainCqlTables.PostPhotos(profile_id, post_id, image_id, image, feed_thumb, thumb_171x180, mime, time) VALUES(?, ?, ?, ?, ?, ?, ?, ?)");
BoundStatement boundStatement = new BoundStatement(statement);
for(File file:files){
..........
............
boundStatement.bind(.....);
session.executeAsync(boundStatement);
}
Its executing but its very much slow. How can i do it efficiently?