On this page
The Advanced connection tab provides additional connection options for your deployment. These options can be used with the General, Authentication, TLS / SSL, and Proxy / SSH Tunnel connection options.
(Optional) Select a Read Preference from the following options:
Default mode. All operations read from the current replica set primary. If the primary is unavailable, the operation fails.
Operations read from the primary unless the primary is unavailable. If the primary is unavailable, operations read from secondary members.
All operations read from the secondary members of the replica set. If the secondary is unavailable, the operation fails.
Operations read from the secondary unless the secondary is unavailable. If the secondary is unavailable, operations read from the primary on sharded clusters.
Operations read from a random eligible replica set member, irrespective of whether that member is a primary or secondary, based on a specified latency threshold. The operation considers the following when calculating latency:
Replica Set Name
(Optional) Name of replica set.
Default Authentication Database
(Optional) Authentication database used when authSource is not specified. For more information, see Authentication Options.
Additional options to customize your connection. You specify these options as key-value pairs, and Compass automatically adds the key-value pairs to the connection string. For more information, see Connection String Options.
To disconnect from your deployment, see Disconnect from MongoDB.