インデックスのプロパティ
MongoDB 5.0 は 10 月 2024 日でサポートを終了します。 このバージョンのドキュメントはサポート対象外になりました。 5.0配置をアップグレードするには、 MongoDB アップグレード手順6.0 を参照してください。
In addition to the numerous index types MongoDB supports, indexes can also have various properties. The following documents detail the index properties that you can select when building an index.
- TTL Indexes
- The TTL index is used for TTL collections, which expire data after a period of time.
- Unique Indexes
- A unique index causes MongoDB to reject all documents that contain a duplicate value for the indexed field.
- 部分インデックス
- A partial index indexes only documents that meet specified filter criteria.
- 大文字と小文字を区別しないインデックス
- A case insensitive index disregards the case of the index key values.
- Hidden Indexes
- A hidden index is not visible to the query planner.
- Sparse Indexes
- A sparse index does not index documents that do not have the indexed field.