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 E0CC07BBE for ; Sun, 13 Nov 2011 11:41:42 +0000 (UTC) Received: (qmail 79143 invoked by uid 500); 13 Nov 2011 11:41:41 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 79105 invoked by uid 500); 13 Nov 2011 11:41:41 -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 79097 invoked by uid 99); 13 Nov 2011 11:41:41 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Nov 2011 11:41:41 +0000 Received: from localhost (HELO mail-iy0-f180.google.com) (127.0.0.1) (smtp-auth username rnewson, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Nov 2011 11:41:41 +0000 Received: by iagz35 with SMTP id z35so9248120iag.11 for ; Sun, 13 Nov 2011 03:41:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.154.194 with SMTP id r2mr19005932icw.50.1321184500354; Sun, 13 Nov 2011 03:41:40 -0800 (PST) Received: by 10.42.244.71 with HTTP; Sun, 13 Nov 2011 03:41:40 -0800 (PST) In-Reply-To: References: Date: Sun, 13 Nov 2011 11:41:40 +0000 Message-ID: Subject: Re: Document design: Logging accesses to an item by a user From: Robert Newson To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Update handlers just move logic to the server side, they are not atomic or transactional, only the document update itself is. In other words, you *can* get a 409 conflict using an update handler. B. On 13 November 2011 09:24, Marian Steinbach wrote: > Sounds like the relation-document way (having a songaccess doc, > equivalent to having had a songaccess table) would be the easiest one. > I'll have to look into update handlers though. > > Thanks guys! >