Skip to content

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

Closed
@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions