쓰기 고려 (Write Concern)

Write Concern (쓰기 고려)

Write Concern(쓰기 고려)는 레플리케이션에서 몇개의 MongoDB 인스턴스에 해당 데이터를 써야 이 데이터를 썼다고 인정하는지에 대한 옵션이다.

Syntax

  • w: the number of mongoDB instances

  • j: journal write

  • wtimeout: time limit

db.collection.insertOne({'document_key': 'document_field'},{ 'writeConcern': { w : value, j : Boolean, wtimeout : value })

Gitbook 이미지 구리네요.

Last updated

Was this helpful?