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 25E2A10CC0 for ; Fri, 24 Jan 2014 07:23:16 +0000 (UTC) Received: (qmail 17317 invoked by uid 500); 24 Jan 2014 07:23:14 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 16784 invoked by uid 500); 24 Jan 2014 07:23:03 -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 16774 invoked by uid 99); 24 Jan 2014 07:22:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jan 2014 07:22:59 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of north.n@gmail.com designates 74.125.83.49 as permitted sender) Received: from [74.125.83.49] (HELO mail-ee0-f49.google.com) (74.125.83.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jan 2014 07:22:52 +0000 Received: by mail-ee0-f49.google.com with SMTP id d17so767027eek.22 for ; Thu, 23 Jan 2014 23:22:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:mime-version:in-reply-to:content-type :content-transfer-encoding:message-id:cc:from:subject:date:to; bh=eRUcY6LyOSeX0LjHOolVIVGJeRD7FjeLPr/KOlOiL4A=; b=CUJjzeZcNJKZgfeksUUTeAoEfsz5urxhewnDOcb8JRL0FkPnkxdPvrAmZSOAiDHx4X mqvyj4LUOkXeI9KjitncWZvbkIiey1FUVfoOxecyg2XXKFcvSmjFMpGg5dzpDYq2ME1P N93ndH/34fnhPJBQMYte0Pu16AlTP2iSsilV6ba34PtU9duQFaf/Puo4pDVj8SyhDH8G IMSI3WI2EEkGp8g4ftGYLp0vdJCGFBqerzcRXEuVO4AVB17DLXihA4YAVv7qUsyUEKE9 CNFO6PMx9KVHMfPRa3LuhQopRHz8qZoGhvvscp2jllZDW3QsEZ0uiDZZRzTVqFl7OoNT VVmA== X-Received: by 10.14.88.5 with SMTP id z5mr706651eee.101.1390548151415; Thu, 23 Jan 2014 23:22:31 -0800 (PST) Received: from [31.87.25.241] ([31.87.25.241]) by mx.google.com with ESMTPSA id j46sm78246eew.18.2014.01.23.23.22.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 23 Jan 2014 23:22:29 -0800 (PST) References: <1390516056.86695.YahooMailNeo@web181704.mail.ne1.yahoo.com> Mime-Version: 1.0 (1.0) In-Reply-To: <1390516056.86695.YahooMailNeo@web181704.mail.ne1.yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: <971E80C1-D48B-43FB-9D4D-1358DEB990DC@gmail.com> Cc: "user@couchdb.apache.org" X-Mailer: iPhone Mail (11B554a) From: Nick North Subject: Re: Replication of attachment is extremely slow Date: Fri, 24 Jan 2014 07:22:20 +0000 To: "user@couchdb.apache.org" X-Virus-Checked: Checked by ClamAV on apache.org There is a known inefficiency in parsing of attachments containing certain c= haracter strings. This doesn't obviously sound like an instance of it, but y= ou can eliminate the possibility very quickly if you replace all hyphens (i.= e. the character "-") in your mixed content file by some other character, li= ke "X". If replication of the modified file runs quickly, you've hit this pa= rticular problem. Nick > On 23 Jan 2014, at 22:27, Scott Weber wrote: >=20 > I have seen the same thing as the poster below. Does anyone have a fix? W= ork around? >=20 > It would seem that the database server is doing some kind of inspection of= the=20 >=20 > attachments and deciding how to move them around (Based 64, UTF16, etc...)= . =20 >=20 > Is this the case? >=20 > Here is what I tried: > I attached a mixed content file to a document (text+binary, kind of like a= PDF). This was about 3 meg or so. Then I triggered a replication to anothe= r database. It took 30 seconds to replicate it *on the same box*. >=20 > I deleted everything, and made several repeats of the this test. >=20 > I renamed the file to *.BIN, then uploaded it. Still took too long to rep= licate. >=20 > I renamed the file to *.TXT, then uploaded it. Still took too long to rep= licate. >=20 > I renamed the file to *.EXE, then uploaded it. Still took too long to rep= licate. >=20 > However, when I upload an *actual* executable file of about the same size,= it replicates it in about 1 second. >=20 > In all cases, the "content_type" of the attachment was correct to the file= type. >=20 > So clearly, something internal is ignoring the "content_type", and examini= ng the file contents. Then deciding what to do about it. >=20 > Is this expected behavior? How can I get the system to simply pass attach= ments as binary without do whatever it is doing. >=20 > Thanks for any advice. >=20 > -Scott >=20 >=20 >> =46rom "Rian R. Maloney" =20 >> Subject Replication of specific binary attachment is extremely slow=20 >> Date Tue, 21 Jan 2014 04:26:53 GMT=20 >> Hello Couch Community - I have an odd problem that I could use some help w= ith. I am using >=20 >> couch replication for attachments that are essentially a bunch of concate= nated >> TIFF images with some text in between each image. When I replicate a data= base with a single >> document that has a single binary attachment that is only 4.5mb it takes 3= 0+ seconds to >=20 >> complete. >=20 >>=20 >> If I zip the file it is sub second to completion >=20 >>=20 >> My test cases have been on Windows 7 and Mac OS x10.7.5 running either >=20 >> CouchDB 1.3, 1.4 or 1.5 >=20 >>=20 >> I am doing local replication The CPU spikes for the entire duration >=20 >> When I use Futon to kick off the replication, it is sub second to complet= ion >=20 >> but when I POST to replicate, it takes 30+ seconds ... >=20