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 to update operations immediately sync to disk in mongodb?



How to update operations immediately sync to disk in mongodb?..

Answer / Bhuwanesh Garbyal

By default, MongoDB uses a write concern of journaling (w:1), which ensures that all updates are written to the journal on disk before the acknowledgement is sent back to the client. To force immediate synchronization to disk for every operation, you can set the write concern to 'journaled' or 'majority', as both ensure a majority vote from replica sets.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MongoDB Interview Questions

Where is mongodb stored windows?

1 Answers  


What is the difference between mongodb and cassandra?

1 Answers  


Is mongodb a database?

1 Answers  


Does aws have mongodb?

1 Answers  


Is mongodb a key value store?

1 Answers  


What is replication factor in mongodb?

1 Answers  


How do you display the list of all collections of current database?

1 Answers  


Is mongodb a firebase?

1 Answers  


Will there be journal replay programs in case of incomplete entries (if there is a failure in the middle of one)?

1 Answers  


Is mongodb the same as nosql?

1 Answers  


Is mongodb free for commercial?

1 Answers  


What is the usage of profiler in mongodb?

1 Answers  


Categories