Tuesday, 14 March 2017

Best way to migrate GB's of data from MongoDB to Cassandra using nodejs script

I have a big collection in MongoDB. Want to migrate all data by running some business logic nodejs scripts on that data to cassandra. What is the best way to do this ?

I have made a script in which i am getting 5000 documents in a single request from mongo and processing the data and inserting the documents into cassandra. It takes a lot of time after 40-50 iterations. CPU usage shows 100%. is this because of a lot of callbacks happening ? I am new to node js so not able to conclude anything.



via Hitesh Goel

No comments:

Post a Comment