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 2022/01/30 03:05:43 UTC

[GitHub] [couchdb] kocolosk commented on issue #3911: ETags support for views

kocolosk commented on issue #3911:
URL: https://github.com/apache/couchdb/issues/3911#issuecomment-1025057429


   I recall that back in the 1.x release series we did have full support for ETags in views. The clustering system we introduced in 2.0 complicated efforts to calculate an efficient ETag, and I think we maybe never really resurrected it. I'm honestly not sure off the top of my head what parts of that code path are still functioning. Are we generating an ETag but ignoring any If-None-Match?
   
   I'd be comfortable with the idea of merging the DB sequences for each of the shard replicas that contributed to the view response as the ETag. If a client supplied that ETag in an If-None-Match header we could implement a reasonably efficient check to see if any of shards have advanced their sequence.
   
   In contrast to document and attachment ETags it would be a net loss to include an If-None-Match on every request to a DB with a high update rate, but if you've got a deployment with a low / infrequent update rate the authoritative caching would still be a nice win.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org