Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 98797 invoked from network); 3 Jan 2009 14:42:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jan 2009 14:42:28 -0000 Received: (qmail 96779 invoked by uid 500); 3 Jan 2009 14:42:27 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 96735 invoked by uid 500); 3 Jan 2009 14:42:27 -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 96724 invoked by uid 99); 3 Jan 2009 14:42:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Jan 2009 06:42:27 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jason@jasondavies.com designates 89.145.97.179 as permitted sender) Received: from [89.145.97.179] (HELO www1.netspade.com) (89.145.97.179) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Jan 2009 14:42:17 +0000 Received: from jddavies.gotadsl.co.uk ([82.133.112.184] helo=[10.0.0.14]) by www1.netspade.com with esmtpa (Exim 4.69) (envelope-from ) id 1LJ7kw-0001C5-Hp for user@couchdb.apache.org; Sat, 03 Jan 2009 14:45:38 +0000 Message-Id: <37FF4315-E129-42F4-95E8-0CA4224B5E0F@jasondavies.com> From: Jason Davies To: user@couchdb.apache.org In-Reply-To: <3E3930F6-105C-43B2-837B-F90EB632C75B@gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Sat, 3 Jan 2009 14:41:56 +0000 References: <21939021.1440421230910477169.JavaMail.servlet@perfora> <46D7ECAF-8D5E-46D4-BFD3-302B3CB1DBEC@jasondavies.com> <4F6E3427-CFDD-472E-BE2F-1E1CB6D04257@jasondavies.com> <214c385b0901021610p1289148dr5cf4e8522574b6f9@mail.gmail.com> <20090103131218.GA22715@tumbolia.org> <20090103134108.GB22715@tumbolia.org> <20090103135418.GD22715@tumbolia.org> <3E3930F6-105C-43B2-837B-F90EB632C75B@gmail.com> X-Mailer: Apple Mail (2.930.3) X-SA-Exim-Connect-IP: 82.133.112.184 X-SA-Exim-Mail-From: jason@jasondavies.com X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on www1.netspade.com X-Spam-Level: Subject: Re: Does CouchDB check autogenerated document id's? X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000) X-SA-Exim-Scanned: Yes (on www1.netspade.com) X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-4.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 On 3 Jan 2009, at 14:17, Antony Blakey wrote: > The multikey get in Couch should be a GET, but it can't be unless > you want you API to be limited by the (practical) limitation on URL > length. > > From an API perspective, I think POST and GET mix up idempotency > with the ability to have a payload or not, which in practical terms > results in people using POST when they should use GET, because those > two issues, whilst theoretically orthogonal, and not implemented > that way. Continuing the tangent... Someone should invent an extension to HTTP whereby a client may issue multiple GET requests at once at the beginning of a single TCP connection. These resources may take time to generate, but are amenable to parallelisation of some kind thus making it advantageous to do this. This is a bit like KeepAlive, except that you can request e.g. multiple CouchDB keys right at the beginning for maximum performance, rather than serially. This is where I hope someone will pipe up and say this already exists :-) Jason -- Jason Davies www.jasondavies.com