Enum AssureIndexMode
- Namespace
- Tharga.MongoDB.Configuration
- Assembly
- Tharga.MongoDB.dll
public enum AssureIndexMode
Fields
ByName = 0Use the index name to verify that the defined index matches the actual index. This is a fast method, but be careful. If an index is changed, you also have to change the name, or the old index will not be changed.
BySchema = 1This method is slower but safer. It compares the defined index with the actual index based on the complete schema.
Disabled = 3Automatic index assurance is disabled.
DropCreate = 2This is a crude and simple method. All indexes are dropped and recreated.