ReadPreferenceMode Enumeration |
Namespace: MongoDB.Driver
| Member name | Value | Description | |
|---|---|---|---|
| Primary | 0 | Reads should be from the primary. | |
| PrimaryPreferred | 1 | Reads should be from the primary if possible, otherwise from a secondary. | |
| Secondary | 2 | Reads should be from a secondary. | |
| SecondaryPreferred | 3 | Reads should be from a secondary if possible, otherwise from the primary. | |
| Nearest | 4 | Reads should be from any server that is within the latency threshold window. |
Copyright © 2010–present MongoDB Inc.