Synopsis
MongoDB는 <database>.system.* 네임스페이스를 사용하는 컬렉션에 시스템 정보를 저장하며, 이 컬렉션은 MongoDB 내부용으로 사용됩니다. system으로 시작하는 collection을 생성하지 마세요.
또한 MongoDB 는 특히 복제 목적으로 로컬 데이터베이스 네임스페이스 및 local.replset.* 세션 정보 를 위한 config 데이터베이스 에 몇 가지 추가 인스턴스-로컬 메타데이터 를 저장합니다.
MongoDB Atlas 및 기타 MongoDB 클라우드 서비스는 접두사 __mdb_internal_*를 사용하는 전용 데이터베이스에 필수 운영 데이터를 저장합니다. 이 접두사가 있는 데이터베이스에 액세스 하거나 수정하지 마세요. 관리 도구에서는 이러한 네임스페이스를 무시하는 것이 좋습니다. 이러한 클라우드 전용 데이터베이스에 대한 자세한 내용은 내부 데이터베이스를 참조하세요.
컬렉션
시스템 컬렉션에는 admin 데이터베이스에 저장된 이러한 컬렉션이 포함됩니다.
admin.system.rolesThe
admin.system.rolescollection stores custom roles that administrators create and assign to users to provide access to specific resources.
admin.system.usersThe
admin.system.userscollection stores the user's authentication credentials as well as any roles assigned to the user. Users may define authorization roles in theadmin.system.rolescollection.
admin.system.versionThe
admin.system.versioncollection stores metadata to support internal operations. Do not modify this collection unless specifically instructed to in this documentation or by a MongoDB support engineer.
시스템 컬렉션에는 config 데이터베이스에 저장된 이러한 컬렉션이 포함됩니다.
config.system.indexBuildsThe
indexBuildscollection stores information related to in-progress index builds.
config.system.preimageschangeStreamPreAndPostImages 옵션이 활성화된 컬렉션에서 수정된 문서의 이전 버전을 저장합니다.
config.system.preimages컬렉션은 사전 이미지가 만료되면 자동으로 제거됩니다. 자세한 내용은changeStreamOptions.preAndPostImages.expireAfterSeconds를 참조하세요.
데이터베이스별 컬렉션
시스템 컬렉션에는 각 데이터베이스에 직접 저장된 이러한 컬렉션도 포함됩니다.
<database>.system.profileThe
<database>.system.profilecollection stores database profiling information. For information on profiling, see Database Profiler.
<database>.system.jsThe
<database>.system.jscollection stores special JavaScript code for use in server side JavaScript. See Store a JavaScript Function on the Server for more information.
<database>.system.viewsThe
<database>.system.viewscollection contains information about each view in the database.Starting in MongoDB 5.0, for featureCompatibilityVersion set to
"5.0"or greater, users can no longer write directly to the<database>.system.viewscollection.