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 4E3C49342 for ; Thu, 19 Apr 2012 07:37:39 +0000 (UTC) Received: (qmail 3789 invoked by uid 500); 19 Apr 2012 07:37:37 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 3086 invoked by uid 500); 19 Apr 2012 07:37:30 -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 3040 invoked by uid 99); 19 Apr 2012 07:37:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Apr 2012 07:37:29 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dominic.tarr@gmail.com designates 209.85.220.180 as permitted sender) Received: from [209.85.220.180] (HELO mail-vx0-f180.google.com) (209.85.220.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Apr 2012 07:37:23 +0000 Received: by vcbfl10 with SMTP id fl10so7801402vcb.11 for ; Thu, 19 Apr 2012 00:37:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=PmFI/N9ycBT8knTLyNHZzTQLqG4BFsT4P9vb9k00Px4=; b=anwjr+iTYxHoUSnyPtkFR59nE+x8tLA0C5yQIHnVYFUDgp7vk5MgM0H0kwo3F4x5R3 /l756gIVH2DQ576h7Zf+hYWQl7lmmDCWhdJ4uy7pzXEdwwTur2Me7bYPRBdpb+hI72z3 F7kx6/Yt8koZRhSOFbTS/6uysq5xzRkIC5JYEhNGHifJ0rYIiBzMtf9KD61qX7PE0WXn qLOGmd+zEQRBka4Y+Ssj7c55rduuO7J5u47cSGJ9yZQDGw/RbLLZo56a8UXIcZyJMD/U GmXw0ZsnNPWCoJDlsVON4+ni4dLDOozi8gGCDyTRdyM/k6iz3lOct1Fi7FctHTjGNORo l8iA== MIME-Version: 1.0 Received: by 10.52.65.170 with SMTP id y10mr470025vds.48.1334821022581; Thu, 19 Apr 2012 00:37:02 -0700 (PDT) Received: by 10.52.166.230 with HTTP; Thu, 19 Apr 2012 00:37:02 -0700 (PDT) In-Reply-To: References: Date: Thu, 19 Apr 2012 19:37:02 +1200 Message-ID: Subject: Re: suggestion for improvement From: Dominic Tarr To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=20cf307f3af2e3c2b704be033cee X-Virus-Checked: Checked by ClamAV on apache.org --20cf307f3af2e3c2b704be033cee Content-Type: text/plain; charset=ISO-8859-1 I'm working on some projects that may be of use to you. I'm already down these rabbit holes! I have https://github.com/dominictarr/xdiff which diffs and patches json. it can also do a 3-way merge, which is used to reconcile concurrent changes. Also, I have https://github.com/dominictarr/snob which manages series of changes. it's the same architecture as git. but allows you to plug in a difftool (that implements diff, diff3, and patch) since you have already architected your application, xdiff may be more useful to you. either way, i've been working on these mainly because they are interesting problems, and would be very interested to see how they apply in practice. is the browser also sending back changes? or is it only going one way? On Thu, Apr 19, 2012 at 2:56 PM, Mark Hahn wrote: > I'm sending changed docs from node to the browser. Then the browser > compares the doc to the dom. If i only sent doc changes there would be > less net traffic and several many of changes wouldn't need to be sent at > all. > > The particular situation that caused me to post this question is a case > where only about 1% of the changes are needed. It bugs me to have so much > unneeded traffic. > > I could cache all the data sent to the client to compare in the server. > I've also thought of writing a summary of what is changed on writes along > with the document. I wanted to ask here before I went down any of these > rabbit holes. > > On Wed, Apr 18, 2012 at 6:50 PM, Dominic Tarr >wrote: > > > couch just doesn't track things at that level, since versioning is done > at > > the document level. > > > > how are you doing handling this at the moment? > > > > are you using a library to do a diff of the conflicted versions or > > something like that? > > > > On Thu, Apr 19, 2012 at 8:28 AM, Mark Hahn wrote: > > > > > Was there a suggestion in the voting list to tell the user what has > > changed > > > when a change notification or conflict is issued? My app burns a lot > of > > > resources because of this problem. > > > > > > --20cf307f3af2e3c2b704be033cee--