couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Cottlehuber (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-1625) View to be bound to a document
Date Tue, 11 Dec 2012 05:13:21 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-1625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13528673#comment-13528673
] 

Dave Cottlehuber commented on COUCHDB-1625:
-------------------------------------------

I think the functionality you want already exists.

If you want to redirect the url to an individual document, the rewriter supports that today.
If you want to run a function over a single doc, then use a show, not a view. There's nothing
stopping a show from returning JSON, and for a single doc running it on every request won't
be significant performance impact. There is additionally the option to cache the result anyway.

Will either of those work for you?
                
> View to be bound to a document
> ------------------------------
>
>                 Key: COUCHDB-1625
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1625
>             Project: CouchDB
>          Issue Type: Brainstorming
>          Components: Database Core
>            Reporter: Gary Titus
>            Priority: Trivial
>
> Currently the view map function runs against all docs and this causes a few performance
bottlenecks if there are many docs or significantly sized documents.
> I would like to propose if not already considered the ability to bind a view to a document
so that when someone calls the view it only loads the document bound to the view and nothing
else.
> possible url
> http://<<server name>>:5984/_utils/database.html?<<db name>>/<<document
name>>/_design/<<desgin doc name>>/_view/<<view name>>
> or
> http://<<server name>>:5984/_utils/database.html?<<db name>>/_designdoc/<<doc
name>>/_view/<<view name>>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message