Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support of ReadPreference option from Mongo #559

Closed
ronaldo971 opened this issue Nov 16, 2013 · 2 comments
Closed

Support of ReadPreference option from Mongo #559

ronaldo971 opened this issue Nov 16, 2013 · 2 comments
Milestone

Comments

@ronaldo971
Copy link

@ronaldo971 ronaldo971 commented Nov 16, 2013

MongoDb offers a option called "Read Preference" that describes how MongoDB clients route read operations to members of a replica set.
http://docs.mongodb.org/manual/core/read-preference/

Morphia allows to set this option at the query level (see the method useReadPreference in https://github.com/mongodb/morphia/blob/ed7bd3fc214ae093e548af8509243bfde421fa3a/morphia/src/main/java/org/mongodb/morphia/query/QueryImpl.java).

It seems that the MorphiaQuery from QueryDsl doesn't offers the same feature.

It is possible to support this in the project?

timowest added a commit that referenced this issue Nov 16, 2013
@timowest
Copy link
Member

@timowest timowest commented Nov 16, 2013

It's now supported.

@timowest
Copy link
Member

@timowest timowest commented Nov 17, 2013

Released in 3.3.0.BETA1

@timowest timowest closed this Nov 17, 2013
@timowest timowest added this to the 3.3.0 milestone Apr 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants