对于 AI 代理:可在 https://www.mongodb.com/zh-cn/docs/llms.txt 获取文档索引—通过在任何 URL 路径后添加 .md 可获取所有页面的 Markdown 版本。
Docs 菜单

系统集合

MongoDB 将系统信息存储在使用 <database>.system.* 命名空间的集合中,MongoDB 将该命名空间保留给内部使用。请勿创建以 system 开头的集合。

MongoDB还在本地数据库local.replset.*命名空间中存储一些额外的实例本地元数据(专门用于复制目的),并在配置数据库中存储会话信息。

MongoDB Atlas和其他MongoDB云服务将基本操作数据存储在使用前缀 __mdb_internal_* 的专用数据库中。请勿访问权限或修改具有此前缀的数据库。我们建议您在管理工具中忽略这些命名空间。有关这些特定于云的数据库的更多信息,请参阅内部数据库。

系统集合包括存储在 admin 数据库中的以下集合:

admin.system.roles

The admin.system.roles collection stores custom roles that administrators create and assign to users to provide access to specific resources.

admin.system.users

The admin.system.users collection stores the user's authentication credentials as well as any roles assigned to the user. Users may define authorization roles in the admin.system.roles collection.

admin.system.version

The admin.system.version collection 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.indexBuilds

The indexBuilds collection stores information related to in-progress index builds.

config.system.preimages

在启用 changeStreamPreAndPostImages 选项的情况下,存储集合中已修改文档的早期版本。当前图像过期时,config.system.preimages 集合会被自动清除。详见 changeStreamOptions.preAndPostImages.expireAfterSeconds。

系统集合还包括直接存储在每个数据库中的以下集合:

<database>.system.profile

The <database>.system.profile collection stores database profiling information. For information on profiling, see Database Profiler.

<database>.system.js

The <database>.system.js collection stores special JavaScript code for use in server side JavaScript. See Store a JavaScript Function on the Server for more information.

<database>.system.views

The <database>.system.views collection 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.views collection.

给本页内容打分