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 2020/01/04 11:20:00 UTC

[GitHub] [couchdb] janl commented on issue #2387: Output the _rev by default in views (similar to _id)

janl commented on issue #2387: Output the _rev by default in views (similar to _id)
URL: https://github.com/apache/couchdb/issues/2387#issuecomment-570777123
 
 
   I think this is a useful addition IF we can make it efficient to provide.
   
   Currently, CouchDB internally needs to store the doc `_id` inside a view index to effectively perform view updates. Because it is already in the index, we show it with every result*. If the view index already also includes the `_rev` for each row (something I’m not sure about at the moment), then we could add an option along the lines of `?include_rev=true` to show it as well.
   
   If the `_rev` is NOT already in the view index, would not suggest we add, just for this feature for performance reasons.
   
   * there might be a valid reverse request to hide the id if it is not needed (`?include_id=false` maybe)

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services