Table of Contents

Enum AssureIndexMode

Namespace
Tharga.MongoDB.Configuration
Assembly
Tharga.MongoDB.dll
public enum AssureIndexMode

Fields

ByName = 0

Use 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 = 1

This method is slower but safer. It compares the defined index with the actual index based on the complete schema.

Disabled = 3

Automatic index assurance is disabled.

DropCreate = 2

This is a crude and simple method. All indexes are dropped and recreated.