Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

MongoDB official document Learning (1)

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

I. Concurrency

MMAPv1

MongoDB 3.0 provides table-level locking. Allows multiple clients to modify documents in different tables at the same time.

MongoDB 2.2-2.6 only allows concurrent reads from the same repository, but concurrent writes from the same repository are not supported.

WiredTiger

WiredTiger supports concurrent writes in the same table. Allow multiple clients to modify different rows of the same table at the same time.

II. Data consistency

Journaling

MongoDB uses journal to write to disk first. Journaling ensures that MongoDB can quickly recover log operations that have been saved to disk in the event that data modified by the MongoDB terminal is not written to the data file due to a crash or other error.

Journaling is enabled to ensure that mongod recovers data files and keeps them in a valid state in case of crash.

Read Concern

Write Concern

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report