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 40BEF983A for ; Fri, 23 Mar 2012 11:42:06 +0000 (UTC) Received: (qmail 80939 invoked by uid 500); 23 Mar 2012 11:42:04 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 80899 invoked by uid 500); 23 Mar 2012 11:42:04 -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 80891 invoked by uid 99); 23 Mar 2012 11:42:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Mar 2012 11:42:04 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL,TO_NO_BRKTS_PCNT X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.215.180] (HELO mail-ey0-f180.google.com) (209.85.215.180) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Mar 2012 11:41:57 +0000 Received: by eaal12 with SMTP id l12so946388eaa.11 for ; Fri, 23 Mar 2012 04:41:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type:x-gm-message-state; bh=s0DnYMal2QI4ObWc+NwaP5gb/L4b+hgFaY4CrOJJMAA=; b=ilN3te7YCvvCP/ep5b3ErEB0KGnJnPEPDSPqZey1xN/FxUkQ+h2ZxunHAwOW554dJA 3wNSAnhGejZ7OfvKz2l8+Is0V+31LPhPkjfOrOwZUGroSn5qQCqkrFU1QK1NkHcq5da7 jEXMa6fuWdu3a/I19VaiLAmmMJBebT9M8MqAVj1FCN0KCuK1Lx9LMy0iWZd5B66dkwKv b4Dl87oneQSDKFFJsUd7YclFrb1IG7xUxPxPm70nQhsW7BfX7MZgsdRdnAELb4ptfE76 zIHVus36iHAHR2tkuWcInzBu2YvLlC/8evh7ea/5ljeIO3pNZQiCIB7l/ZEPYn+mJRb0 82lA== MIME-Version: 1.0 Received: by 10.213.8.79 with SMTP id g15mr886166ebg.108.1332502896578; Fri, 23 Mar 2012 04:41:36 -0700 (PDT) Received: by 10.213.2.211 with HTTP; Fri, 23 Mar 2012 04:41:36 -0700 (PDT) X-Originating-IP: [81.23.57.130] In-Reply-To: References: Date: Fri, 23 Mar 2012 11:41:36 +0000 Message-ID: Subject: Re: Why are reads from CouchDB so slow? (1.5MB/s or thereabouts) From: Jonathan Williamson To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQkNSaFzvuHdRVoTbFYMtHWl2SABJLKNj6tZyKlTffdkhOYZiX3o9D1hv464LngUh8Oe+SqJ X-Virus-Checked: Checked by ClamAV on apache.org As I'm requesting the documents in the exact format I submitted them (with no transformations or extra information) I'd expect something not far off a static file request from Nginx. As far as I can tell the .couch files aren't compressed (though that wouldn't cause such slow performance on an i5 anyway) and appear to contain the original documents almost "as is". The other side effect is that while fetching the documents the CPU usages rises to 100% which suggests, I guess, that CouchDB is reading, deserialising, serialising, and then streaming the document. But it doesn't seem like that should be necessary really? On Fri, Mar 23, 2012 at 11:16 AM, Jason Smith wrote: > Hi, Jonathan. > > Can we start by identifying how fast you think **is** reasonable. What > speeds were you expecting? And on what grounds do you base that > expectation? > > (For example, perhaps connecting and fetching one row from MySQL?)