I have shareded cluster. My application connects to mongos with slaveOk=true.
I some situation I need to check existence of document with concrete value, and if it isn't present allow to insert new, or deny insert if it exists.
In stress load, we are discovered possibility to get wrong reply to query, because it queries slaves when replication isn't done.
Is there possibility using 10gen C# driver to call MongoCollection.FindOne method with primary node as target?
Thanks.