Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 24091 invoked from network); 14 Nov 2008 00:03:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Nov 2008 00:03:45 -0000 Received: (qmail 44590 invoked by uid 500); 14 Nov 2008 00:03:51 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 44553 invoked by uid 500); 14 Nov 2008 00:03:51 -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 44542 invoked by uid 99); 14 Nov 2008 00:03:51 -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 16:03:51 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of adam.kocoloski@gmail.com designates 74.125.44.156 as permitted sender) Received: from [74.125.44.156] (HELO yx-out-1718.google.com) (74.125.44.156) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Nov 2008 00:02:28 +0000 Received: by yx-out-1718.google.com with SMTP id 36so533009yxh.0 for ; Thu, 13 Nov 2008 16:03:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=uoklz6M50TYCSeTKruRqmjW7gj/MJcUfKPttG+aR18k=; b=jEmQ0Otkq7N1h/43AXDgzoOq0id7dUqTqv2+E31RUZJPaGl5Z7p4MoSBIU4SjZIgGq 03jarPVgdSZnIcr8C0ylO3JNMfyEtqnxXopsVFnNQY1PSh0fDiVbdEzyR/WZRNYwscgf Nrfx4fVbEeYHOHsX9YYjIj9aLGDizF13dXaF8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=fE881T/wbrHM6KOH4x+cclglBOqYHB7zy+Q/shxS8SDjYGPIgnOeXaCXdQxJsbDw1D 3PlDVmQ98gLfzgQiprdJDqYeND7dFy623cHyHoLNCl7FRDTvIsZLKwlHnLin2JhmSTTX eE3lsJS0fxgDxfLcfkKPIbfcSq0/mWJGsprow= Received: by 10.90.103.13 with SMTP id a13mr330671agc.12.1226620980909; Thu, 13 Nov 2008 16:03:00 -0800 (PST) Received: from ?10.0.1.3? (c-65-96-242-38.hsd1.ma.comcast.net [65.96.242.38]) by mx.google.com with ESMTPS id 1sm24818agb.20.2008.11.13.16.02.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 13 Nov 2008 16:03:00 -0800 (PST) Message-Id: <747E0C01-3160-420F-BB7D-EB7FB6875094@gmail.com> From: Adam Kocoloski To: couchdb-user@incubator.apache.org In-Reply-To: <20081113233718.GI15315@tumbolia.org> 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 19:02:58 -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> <20081113164344.GB15315@tumbolia.org> <99294D7F-4D06-47F9-800B-DB9213D929F4@gmail.com> <20081113220313.GG15315@tumbolia.org> <20081113233718.GI15315@tumbolia.org> X-Mailer: Apple Mail (2.929.2) X-Virus-Checked: Checked by ClamAV on apache.org Partial updates are also a very popular discussion topic on the restful-json Google group: http://groups.google.com/group/restful-json But AFAIK no consensus has been reached yet. Best, Adam On Nov 13, 2008, at 6:37 PM, Noah Slater wrote: > On Fri, Nov 14, 2008 at 09:09:03AM +1030, Antony Blakey wrote: >> IMO the simplest thing that would work (ignoring representation) >> looks >> something like this: >> >> insert in >> insert after >> insert before >> delete >> replace with >> >> where jsonpath is roughly as: http://goessner.net/articles/JsonPath/ >> without the executable expressions. > > Hmm, this seems pretty cool. > > I did some digging to see what else is out there: > > * http://intertwingly.net/blog/2008/02/21/APP-Level-Patch > * http://blog.mozilla.com/rob-sayre/2008/02/15/restful-partial- > updates/ > * http://www.snellspace.com/wp/?p=895 > * http://lists.w3.org/Archives/Public/ietf-http-wg/2008JanMar/ > 0316.html > * http://www.snellspace.com/wp/?p=902 > > I think I agree that if this was to hit CouchDB it should be done > via the PATCH > method, makes the most sense given the context. > > -- > Noah Slater, http://tumbolia.org/nslater