We've recently suffered from some missing data due to (I suspect) master switchover during inserts. How can I avoid this without writing array(safe=> true) in every single insert/update?
Basically I want connection-level safe => true default that I can occasionally override with safe => false for throughput-oriented data.
Unfortunately, it looks like the php drives doesn't support the ?safe=1 syntax ("argument 27017?safe=1 isn't numeric") and setting w=1 at connection level still appears to require specifying safe => true per query.