AI エージェント向け: ドキュメントインデックスは https://www.mongodb.com/ja-jp/docs/llms.txt で利用できます。すべてのページの markdown バージョンは、いずれかの URL パスに .md を追加することで利用できます。
Docs Menu

システム コレクション

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.