Yes it does.
Writes always go to the primary with mongodb.
Reads are now configurable at the query or schema (collection) level
as of Mongoose 3.1.2 to go to either the primary, secondary, nearest
node, primaryPreferred (refer to the links below for more info), or
secondaryPreferred. You may even specify which secondaries from which
you want to read if using "tag sets". Again, read the info below to
see how it works.
Mongoose Query level:
http://mongoosejs.com/docs/api.html#query_Query-read
Mongoose Schema level:
http://mongoosejs.com/docs/guide.html#read
More details about read preferences:
Overview:
http://docs.mongodb.org/manual/applications/replication/#replica-set-read-preference
Node driver docs:
http://mongodb.github.com/node-mongodb-native/driver-articles/anintroductionto1_1and2_2.html#read-preferences
On Thu, Sep 27, 2012 at 10:09 AM, James Janovich
<
jjan...@imagiclab.com> wrote:
> Does Mongoose support the ability to send all reads to the secondary and all
> writes to the primary?
>
> Thanks!
>
> --
> --
>
http://mongoosejs.com - docs
>
http://plugins.mongoosejs.com - plugins search
>
http://github.com/learnboost/mongoose - source code
>
> You received this message because you are subscribed to the Google
> Groups "Mongoose Node.JS ORM" group.
> To post to this group, send email to
mongoo...@googlegroups.com
> To unsubscribe from this group, send email to
>
mongoose-orm...@googlegroups.com
> For more options, visit this group at
>
http://groups.google.com/group/mongoose-orm?hl=en
>
>
--
Aaron
@aaronheckmann