Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 6630 invoked from network); 13 Nov 2008 17:32:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Nov 2008 17:32:16 -0000 Received: (qmail 1774 invoked by uid 500); 13 Nov 2008 17:32:22 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 1746 invoked by uid 500); 13 Nov 2008 17:32:22 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 1735 invoked by uid 99); 13 Nov 2008 17:32:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Nov 2008 09:32:22 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.68.5.9] (HELO relay00.pair.com) (209.68.5.9) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 13 Nov 2008 17:30:59 +0000 Received: (qmail 369 invoked from network); 13 Nov 2008 17:31:41 -0000 Received: from 96.33.90.152 (HELO ?192.168.1.200?) (96.33.90.152) by relay00.pair.com with SMTP; 13 Nov 2008 17:31:41 -0000 X-pair-Authenticated: 96.33.90.152 Message-Id: From: Damien Katz To: couchdb-user@incubator.apache.org In-Reply-To: <141264.44015.qm@web52505.mail.re2.yahoo.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Subject: Re: Document Updates Date: Thu, 13 Nov 2008 12:31:42 -0500 References: <403828.36717.qm@web52508.mail.re2.yahoo.com> <46837.75533.qm@web52503.mail.re2.yahoo.com> <20081113163808.GA15315@tumbolia.org> <27d8d0930811130840t47269d91o9539fae200bcd380@mail.gmail.com> <0FA8BB94-529D-4FA0-BBD1-781980362534@apache.org> <141264.44015.qm@web52505.mail.re2.yahoo.com> X-Mailer: Apple Mail (2.929.2) X-Virus-Checked: Checked by ClamAV on apache.org Not necessarily relational, it depends on the use case and how much you can denormalize. But if the document keeps growing, is it really a document, or bunch of documents bound together? While some XML databases allow documents that are gigabytes or even terabytes in size, CouchDB documents are meant to be individually held in-memory. And while both operate on documents, the query and access models differ greatly. It might be that XML or relational database is a better fit for your app. -Damien On Nov 13, 2008, at 12:14 PM, Michael Ramirez wrote: > If I begin breaking up my documents into related documents aren't I > just creating a relational database? > > > Michael > > ----- Original Message ---- > From: Damien Katz > To: couchdb-user@incubator.apache.org > Sent: Thursday, November 13, 2008 10:00:44 AM > Subject: Re: Document Updates > > I was planning on something similar this for field and attachment > level replication, where only the fields or attachments that are > changed are replicated. With the scheme I'm thinking of, it's > possible to have it incremental at any nested level of the doc tree, > but I'm not sure the extra overhead is worth doing it beyond the > root fields. > > However, Michael's concern of the document getting larger and the > app getting slower still applies, the document must still be loaded > into memory on the server and the diffs applied, and the complete > doc will need to be loaded into memory for view indexing too. > Michael, regardless of the diff updates, I'm thinking you need to > break you document up into multiple documents. > > -Damien > > On Nov 13, 2008, at 11:40 AM, Ayende Rahien wrote: > >> I think that this should be pretty easily done using: >> a) well defined pretty format output >> b) standard diff >> >> The reason for (a) is that you need this to get line breaks, which >> are >> critical to diffing correctly. >> >> On Thu, Nov 13, 2008 at 6:38 PM, Noah Slater >> wrote: >> >>> On Thu, Nov 13, 2008 at 08:30:17AM -0800, Michael Ramirez wrote: >>>> Will this cause bandwidth issues when updating large documents if >>>> only a >>>> single field changes. I am afraid that as my documents grow >>>> larger my app >>> gets >>>> slower. >>> >>> I for one am interested to hear JSON diff proposals. I think this >>> would >>> make a >>> great addition to CouchDB. As best I can tell, this should really >>> be done >>> as an >>> external standardisation effort so the whole community could >>> benifit. I >>> don't >>> think using JavaScript to set the document attributes is a very good >>> solution to >>> this. An entirely new Media Type is needed, IMHO. >>> >>> -- >>> Noah Slater, http://tumbolia.org/nslater >>> > > >