Does MongoDB support ACID transaction management and locking functionalities?

Technology CommunityCategory: MongoDBDoes MongoDB support ACID transaction management and locking functionalities?
VietMX Staff asked 3 years ago

ACID stands that any update is:

  • Atomic: it either fully completes or it does not
  • Consistent: no reader will see a “partially applied” update
  • Isolated: no reader will see a “dirty” read
  • Durable: (with the appropriate write concern)

Historically MongoDB does not support default multi-document ACID transactions (multiple-document updates that can be rolled back and are ACID-compliant). However, MongoDB provides atomic operation on a single document. MongoDB 4.0 will add support for multi-document transactions, making it the only database to combine the speed, flexibility, and power of the document model with ACID data integrity guarantees.