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 A69618902 for ; Mon, 22 Aug 2011 20:02:50 +0000 (UTC) Received: (qmail 65373 invoked by uid 500); 22 Aug 2011 20:02:48 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 65320 invoked by uid 500); 22 Aug 2011 20:02:48 -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 65312 invoked by uid 99); 22 Aug 2011 20:02:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2011 20:02:47 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of peterwnolan@gmail.com designates 209.85.210.174 as permitted sender) Received: from [209.85.210.174] (HELO mail-iy0-f174.google.com) (209.85.210.174) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2011 20:02:39 +0000 Received: by iyf40 with SMTP id 40so13052433iyf.5 for ; Mon, 22 Aug 2011 13:02:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ZY1jx1G5EHZhyporzSB2XDZxZWP3ez2euXmtxN+uGdE=; b=vwVhd/TxN2aeXYFudFC8ulg5pmqEnzLmv14CoWrou0SwfjmSAL0swXMy9K2d9zkGEN U0sJNY1iDUotLJCQyXCoFdyFCS8hLtGQ/7xksBBvLJjzMpd4iakSOzZS034ge6l3iCXu fbpkacjDPDuX9LCaT/BC9a1NMVGfT5YlpyMGM= MIME-Version: 1.0 Received: by 10.231.49.78 with SMTP id u14mr6161454ibf.75.1314043338895; Mon, 22 Aug 2011 13:02:18 -0700 (PDT) Received: by 10.231.13.71 with HTTP; Mon, 22 Aug 2011 13:02:18 -0700 (PDT) In-Reply-To: References: Date: Mon, 22 Aug 2011 16:02:18 -0400 Message-ID: Subject: Re: save all inputs automatically From: Peter Nolan To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=0015176f1cfa6f2fb904ab1d8e41 X-Virus-Checked: Checked by ClamAV on apache.org --0015176f1cfa6f2fb904ab1d8e41 Content-Type: text/plain; charset=ISO-8859-1 Hey Alex, Your question is a great question, and unfortunately a hard one to answer without more knowledge of your particular application, data structure and intended usage. Unfortunately I couldn't access your application without making an account - and i don't speak german so i couldn't fill out the fields correctly :/ But in regards to your question, there are incredible amount of ways to handle your problem. Keeping track of revisions with a particular document shouldn't be a problem (just store the returned _rev key somewhere) and update accordingly. Alternatively, you could bypass the whole _rev check with a clever update function. (if you need help with these feel free to ask) However, it sounds like data usage is your biggest concern (im assuming this is a mobile application). In which case, have you thought about doing a setTimeout on field changes? for example, when a field changes, delay the sending of the update by a minute. If a new field changes, clear the previous timeout, and start a new '1 minute countdown' to send the data. The data sent should only be the keys the change in the document, and it should call an update function. This will cut down on data usage as well (it won't send the WHOLE document, just what needs to be updated). But honestly, if data usage is not a concern, couchdb is more than up to the task for handling A LOT of document revisions. hope that helped somewhat, -Pete --0015176f1cfa6f2fb904ab1d8e41--