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

Need MongoDB Client to support ReadPreference at the Operation level. #71

Open
wdroidn7 opened this issue Mar 18, 2016 · 0 comments
Open

Comments

@wdroidn7
Copy link

MongoDB supports the WriteConcern and ReadPreference at the DB, Collection, and Operation level.
The setting at the operation level overwrites the setting at the Collection level which overwrites the setting at the DB level.

The current Vertx MongoDB Client supports the WriteConcern at the DB, Collection and Operation level.

For Write operation, one can use the *WithOption() methods to specify the writeConcern. This is the operation level of WriteConcern which overwrites the collection and DB setting of the MongoClient.

For Query operation, one is limited to the readpreference setting when the MongoClient is created. To use different ReadPreference, one needs to create another MongoClient with different readPreference.

@karianna karianna added this to the Backlog milestone Mar 19, 2016
@vietj vietj modified the milestones: Backlog, 4.0.0 Nov 29, 2018
@karianna karianna removed this from the 4.0.0 milestone May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants