翻译或纠错本页面

索引属性

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索引
The TTL index is used for TTL collections, which expire data after a period of time.
唯一索引

唯一索引可以让MongoDB拒绝保存那些被索引键的值已经重复的文档。

Partial Indexes
A partial index indexes only documents that meet specified filter criteria.
Case Insensitive Indexes
A case insensitive index disregards the case of the index key values.
稀疏索引
A sparse index does not index documents that do not have the indexed field.
←   Hashed Indexes TTL索引  →