-
Type:
Question
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: 3.4.12
-
Component/s: Logging
-
None
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
We have an application that's is running python using pymongo driver, in some collections we would like to use the readPreference feature, we are using it like this someCollections.objects(query).read_preference(ReadPreference.SECONDARY_PREFERRED).fir
The problem is that i can't see that the queries goes to the secondary nodes, i had enabled db.setProfilingLevel(2) and using db.system.profile.find() on the second nodes, but i always get an empty result .
How is the profiling features works with readPreferenrce setup on secondary nodes?.
Additional information: the connection configuration on pymongo doesn't have setup readPreference, because we would like to use just the readPrerence only on certain queries.