talis/tripod-php — pull request #26 by lordtatty (2014-10-03 14:09:14+00:00)
Title: 30% - TENT-609 Make tripod saves set db read preference to primary

We are currently setting the collection read preference to primary when calling MongoTripod::SaveChanges(). However the db object also needs to have it's read preference set to primary as it is used when generating views, and reading from secondary may cause a view to be generated with out-of-date data if the replication lag is too high.

Tests to follow when approach is agreed.