• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in Big Data | Hadoop by
Q:
What is writeConcern  in MongoDB ?

1 Answer

0 votes
by

Whenever we query the database to insert()insertOne() or insertMany(), we can pass an additional parameter which is writeConcern. It is a document describes the level of acknowledgement requested from MongoDB for write operations. Write concern can include the following fields:

  • the w option to request acknowledgement that the write operation has propagated to a specified number of mongod instances or to mongod instances with specified tags.
  • the j option to request acknowledgement that the write operation has been written to the journal, and
  • the wtimeout option to specify a time limit to prevent write operations from blocking indefinitely.

Related questions

0 votes
asked Oct 12, 2019 in Big Data | Hadoop by RShastri
0 votes
asked Oct 12, 2019 in Big Data | Hadoop by RShastri
...