I set read preference :nearest in mongo default client.
It works well at CRUD methods, but when I use count method from mongoid, always connect to primary node.
I set read preference :nearest in mongo default client.
It works well at CRUD methods, but when I use count method from mongoid, always connect to primary node.