[ 
https://issues.apache.org/jira/browse/COUCHDB-273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chris Anderson closed COUCHDB-273.
----------------------------------

    Resolution: Fixed

this has been fixed for a while. Now you can use _id and _rev in view values to 
direct include docs. This is think satisfies the request.

> view rows should be able to include _rev
> ----------------------------------------
>
>                 Key: COUCHDB-273
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-273
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: JavaScript View Server
>            Reporter: Louis Gerbarg
>
> In our project we use maps in order to group objects, but do not generate any 
> interesting any meaningful data to return from the mapping function aside 
> from the sorted ordering. Our client basically does a GET against the view to 
> determine what objects are in for a key. It has a local cache, and currently 
> it then HEADs every object returned by that view to see if the objects need 
> to be reloaded. If the rev was included in the row that would be unnecessary. 
> Currently we are intending to return { "rev" : doc._rev } out of the mapping 
> function, but the seems a bit clumsy.
> Jan suggested in irc that maybe the correct thing to do is to remove the 
> "_id" from the roes by default and add both "_rev" and "_id" with an option 
> (include_meta=true). This approach seems good to me, since I suspect people 
> who are using views to manipulate the data in interesting ways generally 
> don't need the object ids, and people who are using views primarily to 
> organize objects almost always need the rev in addition to the object id.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to