node-mongolian icon indicating copy to clipboard operation
node-mongolian copied to clipboard

Support reading from slave servers

Open marcello3d opened this issue 13 years ago • 4 comments

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

marcello3d avatar May 01 '11 01:05 marcello3d

+1

qharlie avatar Dec 27 '11 18:12 qharlie

Is there any news on this

ualtinok avatar Jan 31 '12 12:01 ualtinok

I don't have any timeline for this (I haven't done any work on it). Definitely open to discussion/contribution.

marcello3d avatar Jan 31 '12 13:01 marcello3d

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.

awwright avatar Dec 01 '12 13:12 awwright