Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 38048 invoked from network); 8 Apr 2011 10:26:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Apr 2011 10:26:02 -0000 Received: (qmail 58563 invoked by uid 500); 8 Apr 2011 10:26:01 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 58535 invoked by uid 500); 8 Apr 2011 10:26:01 -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 58527 invoked by uid 99); 8 Apr 2011 10:26:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Apr 2011 10:26:01 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of marcello.nuccio@gmail.com designates 209.85.212.172 as permitted sender) Received: from [209.85.212.172] (HELO mail-px0-f172.google.com) (209.85.212.172) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Apr 2011 10:25:53 +0000 Received: by pxi6 with SMTP id 6so1683276pxi.31 for ; Fri, 08 Apr 2011 03:25:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=wcmiURuWZVH3FEefSlLJg6Ltof2M7v54DQ+J3Hs5Q+o=; b=eUCrp2q1/h5INNgAMhvTXYKEjbeTsKrV8HT1frs4gmjE46tA85sJYf3MzZF/Dut7oN nz74xE7YDBD6nPfEDW1+X+vzYpsVOYxaBZs6OZWCc3U9dmK/xsjXmStOBFZZZAFxQLQv TH0+QepkfNs2FfTnQIsich4o+lCyVa2zVDw4k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=k3CYEE72jrc3s2IaHjKFY+Z8i4m+AtfKULGImXRxwcEuXeo5XOi4ySlvZL7hivwN1o BtiAiNUntL4IxawrPaXn7lHdNjQ4Fn63varZ6Jcpj4nfgyRz/njTEYTgZ9p5l26W1ohT 6rZZsmQAYitF0XoDBdpvZGNJcB5X1hAbg3KmI= MIME-Version: 1.0 Received: by 10.142.131.1 with SMTP id e1mr1636414wfd.292.1302258332151; Fri, 08 Apr 2011 03:25:32 -0700 (PDT) Received: by 10.68.64.194 with HTTP; Fri, 8 Apr 2011 03:25:32 -0700 (PDT) Date: Fri, 8 Apr 2011 12:25:32 +0200 Message-ID: Subject: Fetching many documents: multiple GETs or one POST? From: Marcello Nuccio To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org To build the page of a Web app (built with couchapp), I need to fetch by key many SELDOM CHANGING documents. I can get them all with a single POST request with the keys in the body. Or I can get them one by one with a GET request for each document. The GET requests are cached by the browser, the POST is not. So, which one is best? Any suggestions? Thanks, Marcello