Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 45977 invoked from network); 14 Nov 2008 05:07:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Nov 2008 05:07:23 -0000 Received: (qmail 64701 invoked by uid 500); 14 Nov 2008 05:07:30 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 64666 invoked by uid 500); 14 Nov 2008 05:07:30 -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 64655 invoked by uid 99); 14 Nov 2008 05:07:29 -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 21:07:29 -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 paul.joseph.davis@gmail.com designates 74.125.92.145 as permitted sender) Received: from [74.125.92.145] (HELO qw-out-1920.google.com) (74.125.92.145) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Nov 2008 05:06:06 +0000 Received: by qw-out-1920.google.com with SMTP id 4so854430qwk.54 for ; Thu, 13 Nov 2008 21:06:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=4szQB1YUocBIyFaNkO13Ho9gGmifqVEBh0HwiujO5pA=; b=SSEQnq9rhDVEGuXohxQp69Bns6yWB0Eju5j5uYKdr9ObkoprVYTeJ+aip17lO7N/H8 FykC3BOrzkF2GBoqZUKR1cMvVDPou5TPmw8KIf6tWEGFRmBk6twET0zoykBdSB7EKtX3 A1pV5Ia237gnEWE1pIZ2Zn3Z9iizt/hCAL8yM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=vUDuUhn7bdIGCydzODzEQ+G0FIxExxeXwKn9SkVPMhD4WS9Cqi2/zTh5b+19l9pSb6 P23hpSMc7JTmT3nwN7M2QJOcxi6aZwffq76EK2b6976pF8bc9DolBk/6rV7oO/lkHf78 RoawwXxEI5SXW0UmTiiO0RGBT2YyTnXhAQ3Rk= Received: by 10.215.101.16 with SMTP id d16mr613942qam.192.1226639210078; Thu, 13 Nov 2008 21:06:50 -0800 (PST) Received: by 10.214.215.21 with HTTP; Thu, 13 Nov 2008 21:06:49 -0800 (PST) Message-ID: Date: Fri, 14 Nov 2008 00:06:49 -0500 From: "Paul Davis" To: couchdb-user@incubator.apache.org Subject: Re: Document Updates In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <403828.36717.qm@web52508.mail.re2.yahoo.com> <20081113220313.GG15315@tumbolia.org> <20081113233718.GI15315@tumbolia.org> <0152683E-F379-46A2-B094-0315E17A407E@gmail.com> <4EB51263-640C-4530-9207-9DFCF076E7D9@gmail.com> <387E7267-6AC4-48FC-A680-65EA21992E9E@gmail.com> <27d8d0930811132018l25566fb5rcd10d8708040e997@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org The JS PATCH function is definitely an interesting idea, but I think is not at all going to fix the issue. How many use cases are going to be able to reduce an update operation to a function? Most use cases that I see are of the nature: "Download JSON, deserialize to native language, mutate, serialize, send to server". Anyone that wants write an abstract "mutate" -> JS function thing has props in my book. It is forseable that you could treat it as a stored procedure though. As in the function signature becomes "function(doc, input)" and input is a complex JSON object that is used in the updated. This almost has actual use in terms of the earlier thread on transaction semantics that I assume would be implementable. But really the transaction idea is a whole new can of worms in terms of couch would have to be allowed to request multiple documents in one transaction etc. I think related to Noah's original sentiment of getting some diff system set up way outside of couch in JSON land that's implementable in any language for anything is the best bet. Paul On Thu, Nov 13, 2008 at 11:53 PM, ara.t.howard wrote: > > On Nov 13, 2008, at 9:18 PM, Ayende Rahien wrote: > >> Take into account that the view server is explicitly a separate >> process.Requiring >> it to process incoming request would create a very high overhead. > > i'm just saying - if people could write javascript to execute on the server > people would really be singing hallelujah. from my perspective it's only > about 10000000% as cool as being to plugin a different language in as a view > server. > > 2 cts. > > > a @ http://codeforpeople.com/ > -- > we can deny everything, except that we have the possibility of being better. > simply reflect on that. > h.h. the 14th dalai lama > > > >