Closed
Description
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