You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/05/28 21:49:43 UTC

[GitHub] wohali commented on issue #1342: View query doesn't consider latest write for db with 3 replicas

wohali commented on issue #1342: View query doesn't consider latest write for db with 3 replicas
URL: https://github.com/apache/couchdb/issues/1342#issuecomment-392608179
 
 
   CouchDB is an eventually consistent datastore. No guarantees are provided that you will read-your-writes. There are scenarios, even with n=2 and w=2, where a degraded or overloaded node can still result in you failing to see your write materialised in a view's results.
   
   You can try doing all your writes with `?w=3` as a partial workaround, but again, there is no guarantee this will work 100% of the time, especially in a degraded state.
   
   Proposals have existed for years on adding RYW functionality to CouchDB, but nothing has landed yet. One discussion from 2009 [is here](https://lists.apache.org/thread.html/4efb725b6cc2cf034e4c8ca50788c1d4459a3b09f7450bd97d9b0d54@1234751430@%3Cdev.couchdb.apache.org%3E).
   
   One bit of work in progress that might help you is the return of view etag support, which is [in progress](https://github.com/apache/couchdb/issues/1226).

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services