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 dynamic schema in mongodb?

1 Answers  


What is mongodb written in?

1 Answers  


Who are mongodb competitors?

1 Answers  


Can I use mongodb for free?

1 Answers  


What is mongodb atlas?

1 Answers  


What is mongodb config server?

1 Answers  


What is mongodb and why we use?

1 Answers  


How can I see the connections which you used in mongos?

1 Answers  


When using replication, can some members use journaling and others not?

1 Answers  


Can we use mongodb with java?

1 Answers  


Is mongodb free for commercial use?

1 Answers  


Is mongodb a backend?

1 Answers  


Categories