- I am using a MongoDb to store a collection
- The first time around the collection is inserted without any other consideration
- Once the data has been initialized in DataBase, the rest of the application makes changes in the collection in memory - not in DataBase.
- Under certain conditions I want to "upsert" the memory collection in DataBase.
- I want to send the whole memory collection to DB and I need "some magic" that will update only those data of the collection that have changed in memory.
Can anybody help me with this "some magic" that I am looking for?
I am using Java, Heroku, mLab:MongoDB tech stack.