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 44877D330 for ; Tue, 11 Dec 2012 05:11:44 +0000 (UTC) Received: (qmail 97356 invoked by uid 500); 11 Dec 2012 05:11:42 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 96974 invoked by uid 500); 11 Dec 2012 05:11:40 -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 96586 invoked by uid 99); 11 Dec 2012 05:11:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Dec 2012 05:11:38 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bchesneau@gmail.com designates 209.85.223.182 as permitted sender) Received: from [209.85.223.182] (HELO mail-ie0-f182.google.com) (209.85.223.182) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Dec 2012 05:11:31 +0000 Received: by mail-ie0-f182.google.com with SMTP id s9so13489301iec.13 for ; Mon, 10 Dec 2012 21:11:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=s2E++DndeuS6i7x6wbvkFnLvxomQ0nc9Nsi2GzDKJvM=; b=Wjzt+7ivClB+Vsc0buO9dW2YCK6NFUDvzDwgHR8Rytoaa+BlgWxUsNUo8w32efSOax WNmQ1MFxK56rKX3vcOg9q4LFfIrHTk3gJhlG/YGxynWJ2ddMbuaBElrg3jeNqjY6osro D/raajMswkLcgGRpijr7UeptXAZ5TrZVJiXAaAP9rhobaoRKnozuQFP+qA0b32N+V7E7 Ym6/nahumB+gRKNYf5Yq/cOjZFV7YRXo4EKQnYl5h4UA75xNpgmbd+d9frhZgX9xqVzB CwZP/7vSEQ8fJUtmi6eOyWS/hqszRp6PKqrkdHIw1gbeG+Yu+BSt5xBPijNGusnSEPf+ 8LAg== MIME-Version: 1.0 Received: by 10.50.40.133 with SMTP id x5mr8927711igk.32.1355202671073; Mon, 10 Dec 2012 21:11:11 -0800 (PST) Received: by 10.64.77.196 with HTTP; Mon, 10 Dec 2012 21:11:10 -0800 (PST) In-Reply-To: References: Date: Tue, 11 Dec 2012 06:11:10 +0100 Message-ID: Subject: Re: couchdbkit 10x slower than "Requests"? From: Benoit Chesneau To: "user@couchdb.apache.org" Content-Type: multipart/alternative; boundary=14dae93403d9ced8ef04d08cb50e X-Virus-Checked: Checked by ClamAV on apache.org --14dae93403d9ced8ef04d08cb50e Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Tue, Dec 11, 2012 at 12:12 AM, Holger Krekel wr= ote: > I found the reason. After i discovered that if i open a requests.Session > and perform requests from there, it became as slow as the couchdbkit > connection. The issue is that couchdb by default seems to delay TCP > replies on a http-1.1 persistent connection. Configuring couchdb like > this: > > [httpd] > socket_options =3D [{nodelay, true}] > > makes couchdbkit indeed faster than requests. > > Odd, sounds like there is something wrong somewhre. Can you eventually try with the upcoming version of couchdb (branch 1.3 ?) - beno=EEt --14dae93403d9ced8ef04d08cb50e--