I'm using Cassandra with nodejs to fetch big table with eachRow.
I need to insert data on each row, but for some reason it's not waiting for the query and it finish before it's done.
client.eachRow(query, [], { prepare: true, autoPage : true, fetchSize: 500 }, function(index, row) {
// DB query / insert or update
, function(err, result) {
// Finish all rows.
});
Any suggestions?