Return-Path: X-Original-To: apmail-couchdb-dev-archive@www.apache.org Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A1F9C10DBA for ; Sat, 31 May 2014 12:35:44 +0000 (UTC) Received: (qmail 89236 invoked by uid 500); 31 May 2014 12:35:43 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 89136 invoked by uid 500); 31 May 2014 12:35:42 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 89120 invoked by uid 99); 31 May 2014 12:35:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 May 2014 12:35:42 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [195.154.70.127] (HELO demeter.yrnm.net) (195.154.70.127) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 31 May 2014 12:35:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=yrnm.net; s=oscar; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=EOnpFbbUbUY2JfoPj/To+sY5xpr7H2GZk1+lQbYCZJI=; b=fyoyDY7xAqplI3ABVixN1HNiNVX3TyrjbPFSExXQKG1pIR0CMonDoFYsVYshgiTZYTJn3EstAeztnWmMf+tdOjQYMCws4QLD1wcDiNWGTZHTNZ8KeT6SSr71U2jnSiPWmBkvLAvyL7MxmgH/H+RfdZo1h9qlJogG+vCwZqt8zRQ=; Received: from [151.52.220.11] (helo=sheeva.yrnm.net) by demeter.yrnm.net with esmtp (Exim 4.80) (envelope-from ) id 1WqiVG-0005aS-Ne; Sat, 31 May 2014 14:35:15 +0200 Received: from [192.168.0.5] (helo=xanthus.yrnm.net) by sheeva.yrnm.net with esmtp (Exim 4.72) (envelope-from ) id 1WqiVA-0005rU-FE; Sat, 31 May 2014 14:35:08 +0200 Received: from localhost ([127.0.0.1]) by xanthus.yrnm.net with esmtp (Exim 4.76) (envelope-from ) id 1WqiUz-0004Lr-Qo; Sat, 31 May 2014 14:34:57 +0200 Message-ID: <5389CC71.3050109@nospam.yrnm.net> Date: Sat, 31 May 2014 14:34:57 +0200 From: Franck Eyraud User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: dev@couchdb.apache.org CC: "user@couchdb.apache.org" Subject: Re: Proposal for new feature: Auto Update Functions References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Le 30/05/2014 13:04, Dirkjan Ochtman a écrit : > On Fri, May 30, 2014 at 12:57 PM, Suraj Kumar wrote: >> What are your thoughts, both from the use-case as well as >> internals/performance of CouchDB about this? > How is this different from document update handlers? Update handlers must be called by the client to be used. Auto update functions would be called even if the client directly POST/PUT a doc to the DB (so they would be mandatory). At first sight a good idea, it seems to me that auto update functions would cause problem during replication : the replicated doc might be different from the original one. Franck