couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Wenk <a...@nms.de>
Subject Re: CouchDB: Can a hierarchical URL structure be accomplished with unique documents?
Date Sun, 10 Nov 2013 19:53:52 GMT
On 10 November 2013 19:39, Jens Alfke <jens@couchbase.com> wrote:

>
> On Nov 10, 2013, at 7:05 AM, Hank Knight <hknight555@gmail.com> wrote:
>
> > I understand that it is inefficient to associate all attachment with a
> > single document when creating a couch app.
>
> Only if they’re really, really huge. For a normal couchapp I don’t think
> it would be a problem.
>
> > Is there a way to make these attachments available via the same URL
> > but with each one belonging to an independent document
>
> I believe you can do that using a rewrite handler to change the incoming
> URL. But I have never used those so I can’t tell you how they work.
>

see
http://docs.couchdb.org/en/latest/api/ddoc/rewrites.html?highlight=rewrite#any--db-_design-ddoc-_rewrite-pathfor
_rewrite

-- 
Andy Wenk
Hamburg - Germany
RockIt!

http://www.couchdb-buch.de
http://www.pg-praxisbuch.de

GPG fingerprint: C044 8322 9E12 1483 4FEC 9452 B65D 6BE3 9ED3 9588

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message