collection
-
ViewDatabase/MongoDB 2023. 2. 2. 22:36
기본 컬렉션에서 파생하여 생성되는 읽기전용 Collection 으로, Shard나 인덱스에 대하여 기본 컬렉션의 설정과 동기화 됩니다. View 에서 사용가능한 명령 db.collection.find() db.collection.findOne() db.collection.aggregate() db.collection.countDocuments() db.collection.estimatedDocumentCount() db.collection.count() db.collection.distinct()View 의 생성은 다음 형식을 통해 진행됩니다. db.createView(, , , ) Parameter Type Description view string 이름 source string 기반 데이터가 되는 컬..