I have a mongo (version 2) in production in replicaset configuration (the next step is to add sharding).
I need to implement the following:
My current implementation of loading is:
One of the thing I see is that because of mongoDB lock my total performance getting worst during the loading. I've checked the collection with up to 10Million entries. For more that that size I think I should start use sharding
What is the best way to love such issue? Or maybe should I use another solution strategy?
You could use two collections :)
Then, next day, repeat the above just swapping A and B :)
This will let collectionA still service requests while collectionB is being updated.
PS Just noticed that I'm about a year late answering this question :)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.