incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Stuart (SuperCoders)" <>
Subject Re: Does CouchDB support gzip encoding?
Date Wed, 25 May 2011 12:25:07 GMT
Are you running your curl test from local or remote machine?

Is nginx on the same machine or local?


On 25/05/2011, at 6:53 PM, Torstein Krause Johansen wrote:

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 to do
>> the GZIP compression.

> But after restarting nginx, it seems like I'm still getting text/ 
> plain:
>  wget  --header="Accept-Encoding: gzip" -S -O /dev/null
> "http://localhost:80/memento/ ...
> [..]
>  HTTP/1.1 200 OK
>  Server: nginx/1.0.1
>  Date: Wed, 25 May 2011 08:06:34 GMT
>  Content-Type: text/plain;charset=utf-8
>  Connection: close
>  Vary: Accept-Encoding
>  Cache-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).


Message  protected by MailGuard: e-mail anti-virus, anti-spam and  
content filtering.
Click here to report this message as spam:

View raw message