You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: