Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 96348 invoked from network); 26 Sep 2009 01:40:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Sep 2009 01:40:04 -0000 Received: (qmail 45909 invoked by uid 500); 26 Sep 2009 01:40:02 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 45824 invoked by uid 500); 26 Sep 2009 01:40:02 -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 45812 invoked by uid 99); 26 Sep 2009 01:40:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Sep 2009 01:40:02 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of hallettj@gmail.com designates 209.85.211.197 as permitted sender) Received: from [209.85.211.197] (HELO mail-yw0-f197.google.com) (209.85.211.197) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Sep 2009 01:39:51 +0000 Received: by ywh35 with SMTP id 35so3430526ywh.13 for ; Fri, 25 Sep 2009 18:39:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=DlB/DMa3I+0q02t1lr9/tyqRrWsBHTdxgK/BWKWgGQk=; b=OqA+HfEUfTjbRy8hmu/YuWn9VxzjTjv5B9yLy19w02jZYD18JUqzIOLCiPcOwOq21t bpiq7DUKbUnEXICR9t8lr4eXvy7jLz3Em1LAdea1Bn6azkGfJuxVSzPvsgyPZDJkKMCH k6RA05c6byy/CrmZkLB0qeiOOfC6kF/bErA8Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=kO9HkpgqnYFrpKR1WoFjywpVPtsrYFWq5gm1m0MQJcsPaHsIDmaWMwyHh9RsE4+A3X DMUuSRmCmzdQRuDoGH8YcTJM7xNG+/Fl+ais0pmhMY08OS4Ay052Gd7upulOj/UxAvls QR9pThCYYTRkdM0IleQLG2Qakisf4DLi4oYlI= MIME-Version: 1.0 Received: by 10.150.63.2 with SMTP id l2mr3589528yba.207.1253929169584; Fri, 25 Sep 2009 18:39:29 -0700 (PDT) In-Reply-To: <8a02878f0909251832n3358d3b3s4d0dfe4513917500@mail.gmail.com> References: <796695.24188.qm@web45314.mail.sp1.yahoo.com> <8a02878f0909251832n3358d3b3s4d0dfe4513917500@mail.gmail.com> Date: Fri, 25 Sep 2009 18:39:29 -0700 Message-ID: <8a02878f0909251839g655b83aak3bd01ee753dc2cac@mail.gmail.com> Subject: Re: couchdb: suitable for this type of applications ? From: Jesse Hallett To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=000e0cd3b27cba02ea0474712275 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd3b27cba02ea0474712275 Content-Type: text/plain; charset=ISO-8859-1 I am not sure how this applies to attachments; but with basic docs whenever you update CouchDB does store a new version. When you compact the database it removes all but the most recent version of each document. So compact the database once in a while and your disk usage should be reasonable. You can update whatever document properties you like and attachments will attach to the new version of the document. The attachment is not copied - I believe attachments are stored separately and each document version gets a reference to the attachment file. I don't know enough off-hand to address the frequent small updates question. On Sep 25, 2009 6:29 PM, "go canal" wrote: Hello, another question. here is the use case: - a group of 10 engineers working on a project, - total files created over 12 months: 500 - average update per file 15 times - average file size 20MB - file format: MS Office, PDF, CAD drawings. I thought CouchDB is designed to support this type of applications but is it correct to say that, every time there is an update to a doc, CouchDB will create a new version of the (whole) document ? So can I say the total storage will be 500 * 20MB * 15 = 150GB without counting other overhead ? Another question, if I only modify one field, is the attachment also copied into the new version of the document ? I also saw this message posted almost a year ago, talking about if CouchDB is suitable for frequent small writes application, and it seems that some client side buffering is needed : http://markmail.org/message/klrbkh36ivxg46ax Is it still true today ? rgds, canal --000e0cd3b27cba02ea0474712275--