couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Hahn <m...@boutiquing.com>
Subject Re: Remove field from view
Date Wed, 17 Aug 2011 03:50:04 GMT
> Using an attachment seems like the same concept only cleaner

I didn't think you could retrieve the attachment along with a view.  I
thought it took a different request.  Am I wrong?

You can retrieve a separate doc along with a view using the new feature.

On Tue, Aug 16, 2011 at 1:08 PM, Jens Alfke <jens@couchbase.com> wrote:
>
> On Aug 16, 2011, at 12:23 PM, Mark Hahn wrote:
>
> Why not put c in a separate doc?  Maybe with the same doc id but a
> '-c' suffix.  Then you can pull it whenever you wish as a second read
> by id.  You could also use the new {_id: "<id>-c"} feature to include
> c.
>
> Using an attachment seems like the same concept only cleaner, working with the design
of CouchDB.
>
> —Jens
>

Mime
View raw message