Skip to content

ReadPreference and WriteConcern at collection and operation level. [DATAMONGO-902] #1827

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

Closed
spring-projects-issues opened this issue Apr 2, 2014 · 1 comment
Assignees
Labels
in: core Issues in core support type: enhancement A general enhancement

Comments

@spring-projects-issues
Copy link

Poorna Subhash opened DATAMONGO-902 and commented

currently the framework supports ReadPreference and WriteConcern only at MongoTemplate. However, MongoDB supports these settings at collection and operation level.
The brief usecase for this requirement is written at http://stackoverflow.com/questions/16731597/spring-mongodb-read-preference-at-operation-level .

Here are my thoughts.
Collection level preferences may be implemented using some sort of annotation/extending @Document annotation and then change prepareCollection() method of MongoTemplate.

Operation level preference may require addition additional overloaded methods to MongoOperations interface and Repository interfaces.


3 votes, 4 watchers

@spring-projects-issues spring-projects-issues added type: enhancement A general enhancement in: core Issues in core support labels Dec 30, 2020
@christophstrobl
Copy link
Member

resolved via #4288

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core support type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

3 participants