From dev-return-6386-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Mon Sep 14 01:57:03 2009 Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 97489 invoked from network); 14 Sep 2009 01:57:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Sep 2009 01:57:03 -0000 Received: (qmail 28902 invoked by uid 500); 14 Sep 2009 01:57:02 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 28818 invoked by uid 500); 14 Sep 2009 01:57:02 -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 28808 invoked by uid 99); 14 Sep 2009 01:57:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Sep 2009 01:57:02 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of zachary.zolton@gmail.com designates 209.85.218.211 as permitted sender) Received: from [209.85.218.211] (HELO mail-bw0-f211.google.com) (209.85.218.211) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Sep 2009 01:56:54 +0000 Received: by bwz7 with SMTP id 7so2162517bwz.11 for ; Sun, 13 Sep 2009 18:56:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=VUALgsqiAyI6BEMrJ3bs3rRaU0ZPyThsKLl9uIh8g48=; b=Ry54MpEN08qhKx3B/BeLjJHW7S8dB/5CYJC2rYnpNBEL1SK1Ae0zHwX1Hv6uf+1pzZ W8lUvmrKwibDGCZzOdMEouOvjgaU8hD2m9y/VSMr5SQ0uohpPKjCwi9REdfjNwhOnmRI rnyf3MCEm+mJfSkqByLEz+EHf8Drn5ByChsPQ= 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; b=dL8khRb19S0jXYaolxWB+1d5JdJ859X7Ndo+yS+lwpWKs2nc3Eot3aw0yenZcigjQE o6U3dLn1beMcuhbKj3EfDm+wqqlniex28PwPm+hIuZM5KAn17LUefL15z2uJGxDgjyEW VuTUVFiUzLbAkSDtlf/4FH37LEyQiQLn16Z8E= MIME-Version: 1.0 Received: by 10.204.154.150 with SMTP id o22mr4637419bkw.154.1252893393138; Sun, 13 Sep 2009 18:56:33 -0700 (PDT) In-Reply-To: References: From: Zachary Zolton Date: Sun, 13 Sep 2009 20:56:13 -0500 Message-ID: Subject: Re: Varnish and Multi-doc Fetch? To: dev@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org > This is related to a patch we need: a general JSON syntax for queries. > The idea is that instead of POSTing an array of keys to a view, you'd > post an array of query definition objects. This way you could do > multiple ranges, and other things. Interesting idea... As for the syntax, are you thinking something like this? { "queries": [ { "startkey": "foo", "endkey": "bar", "limit": 5 }, { "startkey": "baz", "endkey": "qux", "limit": 42 } ] } Which would respond with: { "results": [ { "total_rows": 5, "offset": 0, "rows": [...] }, { "total_rows": 42, "offset": 0, "rows": [...] }, ] }