Daniel Watrous on Software Engineering

A Collection of Software Problems and Solutions

Posts tagged performance

Software Engineering

MongoDB ReadPreference

MongoDB connections accommodate a ReadPreference, which in a clustered environment, like a replicaset, indicates how to select the best host for a query. One major consideration when setting the read preference is whether or not you can live with eventually consistent reads, since SECONDARY hosts may lag behind the PRIMARY. Some of the options you… Continue reading