Introduction to MongoDB
1.0 - draft
1.0 - draft
  • MongoDB
  • Getting Started
    • General
      • Database? Collection? Schema?
      • RDBMS? NoSQL?
      • Scale-Up ? Scale - out?
      • JavaScript Object Notation
    • MongoDB
      • 간략한 역사,
    • Manipulating Database
      • MongoShell
      • PyMongo
  • CRUD
    • General
      • Explain()
      • mongoimport
    • Create
      • Mongo Shell
      • PyMongo
      • Exercises
    • Read
      • Mongo Shell
      • PyMongo
      • Exercises
    • Update
      • Mongo Shell
      • PyMongo
      • Exercises
    • Delete
      • PyMongo
      • Exercises
    • Challenging Exercises
      • Exercise 1
  • Index with Geospatial & Text
    • Basic Index
      • Syntax
      • Exercises
    • Geospatial Index
      • Syntax
      • Exercises
    • Text Index
      • Syntax
      • Exercises
    • Challenge
  • Aggregate framework
    • Aggregate Framework
      • Basic
      • Exercises
  • Distributed
    • Replication
      • Setup
        • Configuration File
        • Running Servers
        • Initiation
        • Exercises
      • Concerns
        • Read Concern
        • Write Concern
        • Exercises
    • Sharding
      • Getting Started
      • Setup
  • MongoDB 4.0 Features
    • Multi-Document Transaction
      • Transaction?
      • Basic
      • Exercises
  • Administration
    • Untitled
Powered by GitBook
On this page
  • Read Concern (읽기 고려)

Was this helpful?

  1. Distributed
  2. Replication
  3. Concerns

Read Concern

Read Concern (읽기 고려)

Read Concern(읽기 고려)는 Replication (레플리케이션) 에서 몇개의 MongoDB 인스턴스가 해당 데이터를 가지고 있어야, 이 데이터가 존재한다고 인정하고 읽을 수 있는지에 대한 옵션이다.

Syntax

  • local: 본인의 NODE에서만,

  • majority: 다수의 NODE가 동의를 하면 read 성공!

  • snapshot: snapshot

db.collection.find({'document_key': 'document_field'}).readConcern('majority')

PreviousConcernsNextWrite Concern

Last updated 5 years ago

Was this helpful?