Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 55098 invoked from network); 1 Oct 2010 22:17:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Oct 2010 22:17:20 -0000 Received: (qmail 81594 invoked by uid 500); 1 Oct 2010 22:17:20 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 81510 invoked by uid 500); 1 Oct 2010 22:17:19 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 81502 invoked by uid 99); 1 Oct 2010 22:17:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Oct 2010 22:17:19 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of paul.joseph.davis@gmail.com designates 209.85.214.180 as permitted sender) Received: from [209.85.214.180] (HELO mail-iw0-f180.google.com) (209.85.214.180) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Oct 2010 22:17:13 +0000 Received: by iwn8 with SMTP id 8so5936803iwn.11 for ; Fri, 01 Oct 2010 15:16:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=sO9uzlgXjj/hcWxsbZ/4AFYDp4NR2qfUn98RWe7/h4s=; b=Drr4XAzDGIklaXx4p5hov3BbRipc+nCx1bHT6iVb8z1XS2VDfz2yVngO5P4PjPQl6M bE3rnwSisV3nj/Dfdh4qTpBYWCx6pMA2q8e2WrKK3TXRZkZQaWajWORAAMrURXJNyzWU mAox4glfjVvfDdhImb0JxmXyvLMK6NMltUbZs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=FxUohXm0beNkkYocTFkRX56eOkC8fdMNfm+CO12yroXB1Zqnu5TAf9vWKtWMrG+FL1 cEbm/NQDSxml0cvJyzAkAt8tqKbZ+beZ1V1gMHR4GLV1l4ykSFeynBk1Cv6j4XEVRfsQ JCsSi2PBsk069HkhZzxDkkcHZbuHyiVkNpXF0= Received: by 10.231.11.8 with SMTP id r8mr5891322ibr.135.1285971407435; Fri, 01 Oct 2010 15:16:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.30.194 with HTTP; Fri, 1 Oct 2010 15:16:06 -0700 (PDT) In-Reply-To: References: <24334637.310951285054233138.JavaMail.jira@thor> <30053234.311391285056572830.JavaMail.jira@thor> From: Paul Davis Date: Fri, 1 Oct 2010 18:16:06 -0400 Message-ID: Subject: Re: [jira] Commented: (COUCHDB-891) Allow ?keys=["a","b"] for GET to _view and _list To: dev@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I'm not unsympathetic to the concern, but there's already a few ways to do other things. For instance, ever since we removed _bulk_docs transaction semantics there's no actual reason to keep it around, but we do. The might break as URI gets too long part I think is balanced out by the benefits of things like being able to cache GET's and such forth. HTH, Paul Davis On Tue, Sep 21, 2010 at 10:01 AM, Sebastian Cohnen wrote: > I'm not sure if I like the idea of having two ways accessing one function= ality. One that will always work and one, that might or might not work, dep= ending on the input (size). > > On 21.09.2010, at 15:55, Zachary Zolton wrote: > >> You're also better off caching GET requests than POST requests, should >> the need ever arise. >> >> On Tue, Sep 21, 2010 at 3:09 AM, Michael Fellinger (JIRA) >> wrote: >>> >>> =A0 =A0[ https://issues.apache.org/jira/browse/COUCHDB-891?page=3Dcom.a= tlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentI= d=3D12912874#action_12912874 ] >>> >>> Michael Fellinger commented on COUCHDB-891: >>> ------------------------------------------- >>> >>> If you don't know the size of the keys, you can use POST, I'm not advoc= ating this as a replacement, but as an alternative. >>> My typical usage is to lookup up to a handful of keys, of known size, t= hat fit comfortably in any URI. >>> >>> I recently hit an issue while trying to implement a _list document for = FreeSWITCH (FS) configuration, that is queried directly. >>> Unfortunately, i cannot redirect or rewrite the request for a _list wit= h keys via POST, and I cannot modify the way FS does its queries, so I had = to put a middleware in front just to handle this query for me. >>> With GET, it would be trivial to handle this case, I'd leave it to the = developer to decide whether to use GET or POST. >>> >>>> Allow ?keys=3D["a","b"] for GET to _view and _list >>>> ------------------------------------------------ >>>> >>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Key: COUCHDB-891 >>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 URL: https://issues.apache.org/jira/br= owse/COUCHDB-891 >>>> =A0 =A0 =A0 =A0 =A0 =A0 Project: CouchDB >>>> =A0 =A0 =A0 =A0 =A0Issue Type: New Feature >>>> =A0 =A0 =A0 =A0 =A0Components: HTTP Interface >>>> =A0 =A0Affects Versions: 1.0.1 >>>> =A0 =A0 =A0 =A0 Environment: - >>>> =A0 =A0 =A0 =A0 =A0 =A0Reporter: Michael Fellinger >>>> =A0 =A0 =A0 =A0 =A0 =A0Priority: Minor >>>> =A0 =A0 =A0 =A0 =A0 =A0 Fix For: 1.0.2 >>>> >>>> >>>> The idea was already described back in 2008 when the POST {"keys":["ke= y1","key2"]} API was introduced. >>>> http://mail-archives.apache.org/mod_mbox/couchdb-dev/200811.mbox/%3C49= 10D88A.8000809@kore-nordmann.de%3E >>>> I'm looking at the source right now, but can't figure out how to imple= ment this at the moment, and I'd love this to be part of CouchDB proper. >>> >>> -- >>> This message is automatically generated by JIRA. >>> - >>> You can reply to this email to add a comment to the issue online. >>> >>> > >