Peter Fouquet

Results 3 comments of Peter Fouquet

How can I set a different ReadPreference for a single query? With the mongo driver i use mongoCollection.withReadPreference(ReadPreference.secondaryPreferred()) to execute these query on a secondary, while all other queries where...

When I override the prepareCollection I can't set the read preference for a single query and i can't set the read preference for an annotation based query, because these queries...

HI, do you have a solution to configure the ReadPreference for a single query? Kind regards Peter