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 E2B2810BF1 for ; Wed, 27 Nov 2013 08:46:56 +0000 (UTC) Received: (qmail 41213 invoked by uid 500); 27 Nov 2013 08:46:54 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 40942 invoked by uid 500); 27 Nov 2013 08:46:54 -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 40934 invoked by uid 99); 27 Nov 2013 08:46:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Nov 2013 08:46:53 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of kxepal@gmail.com designates 74.125.82.54 as permitted sender) Received: from [74.125.82.54] (HELO mail-wg0-f54.google.com) (74.125.82.54) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Nov 2013 08:46:46 +0000 Received: by mail-wg0-f54.google.com with SMTP id n12so5403905wgh.33 for ; Wed, 27 Nov 2013 00:46:26 -0800 (PST) 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=ZYugTP+8j7Hp7onNdjAqUMSEx3b2A0z3dVoLvpjDfe8=; b=ni2dje1ni+UB1m6aNTU3EI1JPRxTidlLBFskWqNwEnh4GdvJYDjV37srIL9ecGXRJd QOAUS568qInwbmQzIk2IyK7yMpPK7hS/UqGMu5X7ieg8PFRX3jhAOd8QyD0rlfovPCRT OV+DwRgEoq6zA4v5cD/IJshw1Z5XnOFD7Xvbp+dYmRnqjQEtkE5++JhrZmCXIw8tI8Bh gxE/8cNsZ7HePgMa36K2SobMPfRGYJ/kvWaleHEHISY7zzOQ7CCJGmXKdgKJR+/VNOT2 Lb7ch3Arx6R6rpuQaqHvNJhynehzGL8EU+micFxZpZP3yC+9H1Bg/7NcIm6aQ7aKAjPL tJVQ== MIME-Version: 1.0 X-Received: by 10.180.92.230 with SMTP id cp6mr25609511wib.0.1385541986309; Wed, 27 Nov 2013 00:46:26 -0800 (PST) Received: by 10.180.24.99 with HTTP; Wed, 27 Nov 2013 00:46:26 -0800 (PST) In-Reply-To: References: Date: Wed, 27 Nov 2013 12:46:26 +0400 Message-ID: Subject: Re: proposed feature - list function /update handler half baby From: Alexander Shorin To: "user@couchdb.apache.org" Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Nov 27, 2013 at 12:38 PM, Benoit Chesneau wrote: > On Wed, Nov 27, 2013 at 9:33 AM, Alexander Shorin wrote: > >> mmm..this would require to be database admin and might not been >> optimal. May be have just update function name there? Also, I believe, >> such call will ignore any custom response from update function, right? >> -- >> ,,,^..^,,, >> >> > The purpose would be to only handle the updates of a docs coming in a blik > update. The return message won't change, > > For the admin rights, I don't see, all the rights working for a bulk update > will be applied there. Due to custom source code execution like in case of temp views. While it's might be ok for sandboxed languages, I don't like to have such feature for Python query server or even Erlang one for oblivious reasons(: > Note that such function could introduce the possibility to have > transactions. Imagine you could also access to the database api in such > function... Hm..to have real transaction feature you need to operate with all posted documents e.g. this would be not update function, but something different with signature (docs, req) // note docs instead of doc For access to the database api inside design functions I'm not sure...I'm playing within for lua query server - it's cool and very-very powerful feature, but it works just because I could pass native Erlang couch_* functions into it. For other languages I fear we have to setup some generic RPC service on CouchDB side for that (and make a lot of work for public API) and not sure that this is wise idea. -- ,,,^..^,,,