sql - Transfering data from MySQL to Mongo -


I need to transfer some data from MySQL to mongoDB from time to time MySQL data is increasing and soon TB will occur; The way I am planning to do this is using a standalone Java application that reads using data * from the table * and then I'm planning to add an entry in the Mongo collection for each line .

Is there any better way to do this?

OK, you should try to limit the selection of at least new data, for example For using Timestamp or similar and remember the last export date, so you will have to go through all the data again.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -