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 8838EDF24 for ; Thu, 13 Dec 2012 09:58:01 +0000 (UTC) Received: (qmail 43460 invoked by uid 500); 13 Dec 2012 09:58:00 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 43320 invoked by uid 500); 13 Dec 2012 09:57:59 -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 43196 invoked by uid 99); 13 Dec 2012 09:57:58 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Dec 2012 09:57:58 +0000 Received: from localhost (HELO mail-vc0-f180.google.com) (127.0.0.1) (smtp-auth username rnewson, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Dec 2012 09:57:58 +0000 Received: by mail-vc0-f180.google.com with SMTP id p16so1950070vcq.11 for ; Thu, 13 Dec 2012 01:57:56 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.27.244 with SMTP id w20mr1925253vdg.44.1355392676950; Thu, 13 Dec 2012 01:57:56 -0800 (PST) Received: by 10.52.68.209 with HTTP; Thu, 13 Dec 2012 01:57:56 -0800 (PST) In-Reply-To: References: Date: Thu, 13 Dec 2012 09:57:56 +0000 Message-ID: Subject: Re: Will put/delete attachments copy the whole doc? From: Robert Newson To: "user@couchdb.apache.org" Content-Type: text/plain; charset=ISO-8859-1 The updated doc and new attachment will be written to disk, but not existing attachments (we just point back at the copy we already have). On 13 December 2012 07:45, Holger Krekel wrote: > Am playing with couchdb to determine if i want to use it in a larger > project. And I am wondering how couchdb handles REST-attachments > currently. If i add/delete one attachment in a doc with multiple > attachments, will couchdb internally copy the whole doc and all of its > attachments or only the one attachment i am dealing with? > > thanks, > holger