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 E2B474D8D for ; Wed, 25 May 2011 08:54:10 +0000 (UTC) Received: (qmail 42743 invoked by uid 500); 25 May 2011 08:54:09 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 42695 invoked by uid 500); 25 May 2011 08:54:09 -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 42687 invoked by uid 99); 25 May 2011 08:54:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 May 2011 08:54:09 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of torsteinkrausework@gmail.com designates 209.85.215.52 as permitted sender) Received: from [209.85.215.52] (HELO mail-ew0-f52.google.com) (209.85.215.52) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 May 2011 08:54:02 +0000 Received: by ewy28 with SMTP id 28so3165796ewy.11 for ; Wed, 25 May 2011 01:53:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:reply-to:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=SkElY+uoXwemp45TrdPK5ot9Wi33Rd/uhe/Oow4bc7M=; b=nL84lLcCk496h8p91vfnIHshjLgdLizusPhCr7HM9IxeevRc27Oknx3Lw5xuVjIGGa hY5waN9de2LorvBR+e6HtDD0R5uaK9rHv075Y1bjGMil9Xcqq2kam/1VCGC2oHxHql1V sZwC0h4wLuCzWkCS54RDUVF7xZtcoVnGk8HAk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; b=x8yWaEjlWUBiAPBUBoXx1ytQU55IAJcoz49f2ThYd4vpWMywj1OtpPrgncRO0k+tYu mXToSJ3zHSeQf13t7uKPcD3tBk4OWzUzu+3O257YRDJMdUWDB/twsno4HT4WItdF+ozL tXy0ZYhgzD19pXcIVnjgVP6XclK/Px3hAQzJo= MIME-Version: 1.0 Received: by 10.213.8.79 with SMTP id g15mr1538381ebg.130.1306313622470; Wed, 25 May 2011 01:53:42 -0700 (PDT) Received: by 10.213.3.67 with HTTP; Wed, 25 May 2011 01:53:42 -0700 (PDT) Reply-To: tkj@vizrt.com In-Reply-To: References: Date: Wed, 25 May 2011 16:53:42 +0800 Message-ID: Subject: Re: Does CouchDB support gzip encoding? From: Torstein Krause Johansen To: user@couchdb.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi again, On 25 May 2011 16:10, Torstein Krause Johansen wrote: > On 25 May 2011 15:05, Andrew Stuart (SuperCoders) > wrote: >> I put nginx in front of the server as a reverse proxy and configure it t= o do >> the GZIP compression. > But after restarting nginx, it seems like I'm still getting text/plain: > > =C2=A0wget =C2=A0--header=3D"Accept-Encoding: gzip" -S -O /dev/null > "http://localhost:80/memento/ ... > [..] > =C2=A0HTTP/1.1 200 OK > =C2=A0Server: nginx/1.0.1 > =C2=A0Date: Wed, 25 May 2011 08:06:34 GMT > =C2=A0Content-Type: text/plain;charset=3Dutf-8 > =C2=A0Connection: close > =C2=A0Vary: Accept-Encoding > =C2=A0Etag: "8YHQMMO1RSGW6DKQHQDBM8X6L" > =C2=A0Cache-Control: must-revalidate > > What am I missing here? Mhmm, running the same test with curl instead of wget gave me the desired results. Odd. The GET still took ~5.5 seconds, though, even though the amount of data is 1.1M instead of 14M. Since the _id is half of the data and I don't really need it; is there any way (outside of a list which takes too long time for so many rows) to omit the _id (and key) in the view result? (I need the key when doing the view "search" so I have to emit it in my map.js). Cheers, -Torstein