node-mongolian
node-mongolian copied to clipboard
Support reading from slave servers
In conjunction with GH-13, it would be useful to support eventually consistent reads off of slave servers.
See: http://www.mongodb.org/display/DOCS/Connecting+Drivers+to+Replica+Sets
+1
Is there any news on this
I don't have any timeline for this (I haven't done any work on it). Definitely open to discussion/contribution.
Many of the drivers seem to have a setReadPreference method on the server connection, collection, and cursor objects. Is that what this is? Because setSlaveOk may not be sufficient for some use cases.