[
https://issues.apache.org/jira/browse/COUCHDB-589?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12806005#action_12806005
]
Chris Anderson commented on COUCHDB-589:
----------------------------------------
The problem with executing the _show function even when there is no document
with the corresponding ID, is that unless users code for the potential that doc
is null, they will likely raise an (expensive, uncacheable) 500 error, instead
of a hand-crafting a 404.
I understand there are apps that want to handle the 404 in the show.
Maybe this needs to be an option -- it's a nasty surprise to have a null doc
for 80% of users, and a necessity to handle 404s in a custom way for the other
20%
> Simplify Query Server interface and Design Handlers
> ---------------------------------------------------
>
> Key: COUCHDB-589
> URL: https://issues.apache.org/jira/browse/COUCHDB-589
> Project: CouchDB
> Issue Type: Improvement
> Components: JavaScript View Server
> Reporter: Chris Anderson
> Assignee: Chris Anderson
> Attachments: ddoc_qs.patch, design_handlers.patch
>
>
> This patch refactors list, show, update, filter, and view handling to have a
> unified interface for loading the design document and functions from it. It
> is a step on the path to removing a lot of function src passing overhead from
> the view server protocol.
> The patch also removes some old part of the API while improving other parts
> of the API.
> The big changes:
> Load the design document before handing it to the design document handlers.
> This removes a lot of duplicated code.
> Remove /db/_view handler. I think it's in our interest to remove the last
> bits of the old-style API before 0.11.
> I also clean up some rough edges in the API.
> I plan to commit this patch soon, but want to give people an opportunity to
> look it over.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.