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 3E5038650 for ; Mon, 22 Aug 2011 23:14:35 +0000 (UTC) Received: (qmail 39686 invoked by uid 500); 22 Aug 2011 23:14:33 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 39662 invoked by uid 500); 22 Aug 2011 23:14:32 -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 39653 invoked by uid 99); 22 Aug 2011 23:14:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2011 23:14:32 +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 (athena.apache.org: domain of alex.barbalex@gmail.com designates 209.85.212.52 as permitted sender) Received: from [209.85.212.52] (HELO mail-vw0-f52.google.com) (209.85.212.52) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2011 23:14:25 +0000 Received: by vws16 with SMTP id 16so6608852vws.11 for ; Mon, 22 Aug 2011 16:14:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=zp2XOQoBsRDO00qVTVlm6phMzomniXVWlOzY4ToFZ7w=; b=jkQrZykJ/Cmjsd3P7ZgEzmjZgJnI+syeeUU7mv1X1PL8KBW5ywhLv02vYj4KK4EKzD VDf38N8QwpQYMfKvgojNuOfAdX53hYy0BAiR08cvwzhnPrMu4weU9rnu366k6kvdPi1F 9Tbt/aXjrdgA355tLMexoMaSpYZoYeX8YoBVM= MIME-Version: 1.0 Received: by 10.52.26.97 with SMTP id k1mr3255596vdg.523.1314054844848; Mon, 22 Aug 2011 16:14:04 -0700 (PDT) Sender: alex.barbalex@gmail.com Received: by 10.52.183.100 with HTTP; Mon, 22 Aug 2011 16:14:04 -0700 (PDT) In-Reply-To: References: Date: Tue, 23 Aug 2011 01:14:04 +0200 X-Google-Sender-Auth: Ah-gYybQRrT5Zl2uBOSxn6DSJuc Message-ID: Subject: Re: save all inputs automatically From: Alexander Gabriel To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=20cf307f33ec3e18de04ab203c84 --20cf307f33ec3e18de04ab203c84 Content-Type: text/plain; charset=UTF-8 well, I implemented it with just the regular savedoc for every change event. Works beautifully in the pc-browser. Not sure, if it will be fast enough on the mobile though. I will look into update functions if it turns out too slow. Thanks for your help. Alex 2011/8/22 Peter Nolan > 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 > --20cf307f33ec3e18de04ab203c84--