Menu
Simba Technologies
Simba Technologies

Simba MongoDB ODBC Driver with SQL Connector 2.2.3
Installation and Configuration Guide

Read Preference

Key Name Default Value Required

ReadPreference

Primary (primary)

No

Description

Specify how the driver routes read operations to the members of a replica set. The following values are possible:

  • Primary (primary)
  • Primary preferred (primaryPreferred)
  • Secondary (secondary)
  • Secondary preferred (secondaryPreferred)
  • Nearest (nearest)

Note:

  • The values are case-sensitive.
  • This option is only available when the Connect to Replica Set option or the EnableReplicaSet key is enabled.

For more information, see "Replication" in the MongoDB Manual: http://docs.mongodb.org/manual/replication/.