Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How do I do transactions/locking?



How do I do transactions/locking?..

Answer / Rahul Singh Rathor

MongoDB provides multi-document ACID transactions through the use of WiredTiger or MongoDB 4.0+ with the MongoDB Changelog feature. To perform a transaction, you can use the `beginTransaction`, `savePoint`, and `commitTransaction` methods for WiredTiger, or the `startSession` method with the `beginTransaction` operation for MongoDB 4.0+. Locking is accomplished through collection-level locks in MongoDB.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MongoDB Interview Questions

what is the command syntax for inserting a document?

0 Answers  


Explain sharding in mongodb?

1 Answers  


Is mongodb distributed database?

1 Answers  


What is skip() method?

1 Answers  


Is mongodb a relational database? Explain

1 Answers  


How does mongodb store data?

1 Answers  


What is metadata in mongodb?

1 Answers  


What do you mean by a replica set in mongodb?

1 Answers  


Is mongodb better than mysql?

1 Answers  


Is mongodb a relational database?

1 Answers  


If you remove a document from database, does mongodb remove it from disk?

1 Answers  


How we can create an index in mongodb?

1 Answers  


Categories