Monday 27 April 2020

Will MongoDB prevent Read Operation during Atomic Transaction

As per title, either for single document or multi-document atomic transaction, will Mongo prevent read operation while it’s performing atomic write transaction?I’m worried that the application will read the old data while Mongo is still updating the data in the atomic write transaction. Then, this old data is used to update the database, instead of using the new data.Or will MongoDB atomic transaction prevent subsequent query to be performed before the current atomic transaction is completed, so that the query will read the updated data? What if the atomic transaction takes a long time, will this be prevented with Mongo inner mechanism?

Submitted April 28, 2020 at 01:40AM by VickNicks

No comments:

Post a Comment