Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 35284 invoked from network); 11 Apr 2011 15:57:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Apr 2011 15:57:17 -0000 Received: (qmail 88308 invoked by uid 500); 11 Apr 2011 15:57:15 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 88241 invoked by uid 500); 11 Apr 2011 15:57:14 -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 88233 invoked by uid 99); 11 Apr 2011 15:57:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Apr 2011 15:57:14 +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 truemped@googlemail.com designates 74.125.82.180 as permitted sender) Received: from [74.125.82.180] (HELO mail-wy0-f180.google.com) (74.125.82.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Apr 2011 15:57:07 +0000 Received: by wyj26 with SMTP id 26so7244090wyj.11 for ; Mon, 11 Apr 2011 08:56:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=xppBGFwcYlWvRYCL4lPA7coYX0H1s/8M5EYXwtI0OTg=; b=EmaneFh4ig3Xu7tc7OxMow+WL9p8K+Zie02io5OozYrgvqphluTwxjo/4PF1ZrtiR4 OZGB+5//UjmDRnSk1TQuNKHo88xSTUXaJidHJZAj8qmqkqV24P812l6lKoshj9wYUVsF HSupmBaaqXH7mehBnQa8KTfQ4gzMi7seUXGcQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=UQ6ho+i2VpvigNS+xURRopf4ifCxqQ5HcEXP7i0Or3cAgyEYDGtpuzaHlRuTxMMp6l dDy8ZM5BfDG4KL7r8fgh6epRRYTg1avsBM1r+Q4jmex0ZizGH53MWESIAH0PTgXDv/jy AL8YHpmKYdDy6LWfNM5OCZowddHKKeotAkiAo= Received: by 10.227.149.11 with SMTP id r11mr2873498wbv.165.1302537407000; Mon, 11 Apr 2011 08:56:47 -0700 (PDT) Received: from [192.168.2.161] (h-213.61.58.164.host.de.colt.net [213.61.58.164]) by mx.google.com with ESMTPS id ed10sm3486405wbb.15.2011.04.11.08.56.44 (version=SSLv3 cipher=OTHER); Mon, 11 Apr 2011 08:56:45 -0700 (PDT) Message-ID: <4DA324C0.80403@googlemail.com> Date: Mon, 11 Apr 2011 17:56:48 +0200 From: Daniel Truemper User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Lightning/1.0b2 Thunderbird/3.1.8 MIME-Version: 1.0 To: user@couchdb.apache.org Subject: Re: Some questions on large attachments References: <4DA1A5B5.7040305@googlemail.com> In-Reply-To: <4DA1A5B5.7040305@googlemail.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Stefan, > Is it possible to copy (or move) an attachment from one document to an > other without downloading and re uploading the file? AFAIK, server side copying of attachments is not possible. > If the same file is attached to 2 or more documents, will couchdb hold > one copy for each or is it possible to tell couchdb these are the same, > you only have to store it once? The same as above, I don't think this is possible right now. It would require a lot of server side processing of the database if one attachment is equal to any of all other documents and would slow down attachment uploading significantly. Maybe you could store the attachment in a separate document from the original one and store a link to it? Best, Daniel