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

mongodb: easy specifiers for safe writes and secondaries reads #2

Closed
elucash opened this issue Jan 3, 2014 · 1 comment
Closed

Comments

@elucash
Copy link
Member

elucash commented Jan 3, 2014

Earlier, it was like a good idea to not provide any specific support for WriteConcern and ReadPreference.
In general, database defaults could be set on DB instance and repositories will just use that. Separated repositories of the same class may be configured to use different default options for WriteConcern and ReadPreference.

After some additional hands-on experience with other mongodb drivers, it is could be beneficial to add minimal support for per-operation overrides:

  • safeWrite() for overriding write concern
  • readSecondaries() for overriding read preference

Just as an example. insert, deleteAll, upsert etc — doesn't have configuration object, nowhere to stick this configurator. This will require some API overhaul, which is not very desirable. Not that we cannot change things, but it may complicate repository API.

@elucash
Copy link
Member Author

elucash commented Apr 16, 2015

currently there's no plans to improve this aspect of mongo support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant