Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 972E5F12A for ; Wed, 20 Mar 2013 14:23:04 +0000 (UTC) Received: (qmail 49996 invoked by uid 500); 20 Mar 2013 13:59:51 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 49612 invoked by uid 500); 20 Mar 2013 13:59:44 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 49385 invoked by uid 99); 20 Mar 2013 13:59:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Mar 2013 13:59:41 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bchesneau@gmail.com designates 209.85.128.42 as permitted sender) Received: from [209.85.128.42] (HELO mail-qe0-f42.google.com) (209.85.128.42) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Mar 2013 13:59:37 +0000 Received: by mail-qe0-f42.google.com with SMTP id da11so174924qeb.1 for ; Wed, 20 Mar 2013 06:59:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=bNdgtCIiadGGVMbzHIZsvL222c5MJaKeFpEUHjjJtB4=; b=ASU0LUWESuh0iNpQkRe0iyr3yo/Nd3RrE+UoiXsnho0c5vlbChmOs+++YhmunNq4sa ZnMWU8omlsoMkwvHbYcd8b5DYDN7UXbD6W/TdUNpvoNpgazI1JwVFcPSfeBZV/8p1u4q Y2pDFMhIgU8tL774oECRdJn0e0XqEWEPc41OtzSb0IuXzYCK1FptRnFqgvrmKQKJhStJ g3tz034lmy+A9Gj13r0nd1RGIk9T16VWM9nW29hcVX16FB8vxEP+G8tzSxjT+rlhIjs5 hKVnODmkP856AYNVbN3M5yy/RTjxsrGpNkByAPLfDHeslDHYeV1/1wZNKqj3wrPomiWk e2ZA== MIME-Version: 1.0 X-Received: by 10.49.97.134 with SMTP id ea6mr7018254qeb.33.1363787956881; Wed, 20 Mar 2013 06:59:16 -0700 (PDT) Received: by 10.49.64.232 with HTTP; Wed, 20 Mar 2013 06:59:16 -0700 (PDT) In-Reply-To: References: <5149BA03.4020603@berjon.com> Date: Wed, 20 Mar 2013 06:59:16 -0700 Message-ID: Subject: Re: How to workaround missing id in a request to Update Handler From: Benoit Chesneau To: "user@couchdb.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Mar 20, 2013 at 6:43 AM, Robert Newson wrote: > Hi Robin, > > I re-read the comments on your PR. I hope you didn't read it too > personally as I'm sure that wasn't the intention of those that > commented. The issue is that a roundtrip through Javascript evaluation > is a significaters arnt overhead. No matter how you implemented it, it would > almost certainly be too slow for a useful URL rewriting feature. I > don't dispute that the URL rewriter in couchdb could be improved, > though. I think a viable path would be a more powerful microlanguage, > something modelled on mod_rewrite or the nginx module, perhaps? In > summary, I'd love to see a rewriter feature in CouchDB that is > comprehensive while still being fast; you're not the first to reach > its limits. > > B. > > One less limited I proposed 2 years ago is that one too: https://github.com/benoitc/couchapp-ng Which is not reusing another dsl but simply the regexp pattern like all routers around. But what is really wanted here is a full access to the couchdb api to return a doc from anything in the query or headers. which is quite different. We could also go for another script language like lua that can be interpreted natively. - benoit