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 7533610A6D for ; Sun, 10 Nov 2013 18:35:01 +0000 (UTC) Received: (qmail 36745 invoked by uid 500); 10 Nov 2013 18:35:00 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 36650 invoked by uid 500); 10 Nov 2013 18:35:00 -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 36642 invoked by uid 99); 10 Nov 2013 18:35:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Nov 2013 18:35:00 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jens@couchbase.com designates 206.225.164.29 as permitted sender) Received: from [206.225.164.29] (HELO EXHUB020-2.exch020.serverdata.net) (206.225.164.29) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Nov 2013 18:34:53 +0000 Received: from EXVMBX020-1.exch020.serverdata.net ([169.254.4.151]) by EXHUB020-2.exch020.serverdata.net ([206.225.164.29]) with mapi; Sun, 10 Nov 2013 10:34:30 -0800 From: Jens Alfke To: "user@couchdb.apache.org" Date: Sun, 10 Nov 2013 10:34:32 -0800 Subject: Re: Storage limitations? Thread-Topic: Storage limitations? Thread-Index: Ac7eQ36wUGY6ix0OQC+JN5xTLZ+4NA== Message-ID: <1CD5C733-4854-407A-A8DF-8E29A1A0493B@couchbase.com> References: <527E548F.4020203@yandex.ru> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_1CD5C7334854407AA8DF8E29A1A0493Bcouchbasecom_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_1CD5C7334854407AA8DF8E29A1A0493Bcouchbasecom_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable On Nov 9, 2013, at 11:47 AM, Robert Newson > wrote: attachments are different to documents. They're stored as a series of binary chunks and so they can be streamed in and out, you can go large with attachments. But on the other hand, all attachments will get copied during a database co= mpaction, so they slow down the process and require more free disk space. I= f you have many gigabytes of attachments, you might consider storing them e= xternally and putting URL links in the documents. As for comments, just add new documents for each comment and use a view (https://wiki.apache.org/couchdb/HTTP_view_API, https://wiki.apache.org/couchdb/View_collation) to bring the article and comment thread together. No need to update a document that way. Yup. The guide > has a chapter-= long example of a blog application that shows how to do comments this way. =97Jens --_000_1CD5C7334854407AA8DF8E29A1A0493Bcouchbasecom_--