|
When working with replica sets we should make sure that all the write and read ops of a session target the same replica. Otherwise a read might not see previous writes if it is executed against a different replica.
That's easily done for a single flush cycle (which would already be an improvement), but I don't think it can be done with today's GridDialect SPI.
Details: http://docs.mongodb.org/ecosystem/drivers/java-concurrency/
|