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 F1E0F10795 for ; Sun, 7 Apr 2013 19:40:32 +0000 (UTC) Received: (qmail 9608 invoked by uid 500); 7 Apr 2013 19:40:30 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 9564 invoked by uid 500); 7 Apr 2013 19:40:30 -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 9553 invoked by uid 99); 7 Apr 2013 19:40:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Apr 2013 19:40:30 +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: local policy) Received: from [91.195.24.3] (HELO mail.open.bg) (91.195.24.3) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Apr 2013 19:40:23 +0000 Received: from [78.83.22.128] (port=60657 helo=localhost.localdomain) by mail.open.bg with esmtpsa (Cipher SSL3.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) id 1UOvRY-0007Ug-Jp by authid with login for ; Sun, 07 Apr 2013 22:40:00 +0300 Date: Sun, 7 Apr 2013 22:39:59 +0300 From: svilen To: user@couchdb.apache.org Subject: Re: How To Retrieve JUST The Latest Rev Of A (Design) Doc - Check For CouchApp Update Message-ID: <20130407223959.206219a4@svilendobrev.com> In-Reply-To: References: X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.16; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org how about filtered /_changes? > Brad Rhoads wrote: > The problem I'm trying to solve is to check if there are any changes > that the replication will do when requested. > On Apr 7, 2013 12:11 PM, "Tibor Gemes" wrote: >=20 > > I would use a named document replication with the id of the design > > document. This way you will not have to worry about the revisions. > > > > T > > 2013.04.06. 18:58, "Brad Rhoads" ezt =C3=ADrta: > > > > > We're running a couchapp on TouchDB Android. The app has a "check > > > for update" option that of course, just starts a replication > > > against the the version running online. But I'd like to tell the > > > user either "update in progress" or "no update available." > > > > > > It seems that I should just need to compare the rev of the local > > > _design doc against the remote _design doc. Is there a way to > > > request just the > > _rev > > > of the remote doc? So far I've only been able to retrieve the > > > entire document, which in the case of a couchapp is pretty big. > > > > > > As I was just writing that, it came to mind that I might just be > > > better > > off > > > creating a separate document that has a last update/version > > > number in it. > > > > > > Any other approaches to this problem? > > >