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 31184F9E6 for ; Sun, 7 Apr 2013 18:40:31 +0000 (UTC) Received: (qmail 89602 invoked by uid 500); 7 Apr 2013 18:40:29 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 89562 invoked by uid 500); 7 Apr 2013 18:40:29 -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 89553 invoked by uid 99); 7 Apr 2013 18:40:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Apr 2013 18:40:29 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bdrhoa@gmail.com designates 209.85.214.182 as permitted sender) Received: from [209.85.214.182] (HELO mail-ob0-f182.google.com) (209.85.214.182) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Apr 2013 18:40:25 +0000 Received: by mail-ob0-f182.google.com with SMTP id ef5so5143978obb.13 for ; Sun, 07 Apr 2013 11:40:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=p+LdUGxdns+f1I7SAhLTXuXrWH9vSTlIwo/4zXmIpgo=; b=cXY7UeqPug3C+wDXxYi5tmZVxU2dqwXwl6h3j5dqmeVVJWlYWpl9j/DK8YU6ZSXfGc 9kQYXrVxnPDtiAtAcY3wsU9LQJGKBi+JmV8urVeu8ME+ia8xxQi+ALg57/N9bO/wQY93 qNgZbVnX6t08M3W5w98DsiVGx/lDckynqggRCwXrDbZFojngWJ7ob8j4jrDU82gB8lki my2tJr3B4B4GtzLBynD4ugIw/EFDFd2B98l8UUAr22TMyUUK3JXSgNxHiXZaQfc2vXTq 3rVsYo6I3nsy4zTf9pHtwHSFlu+Wuf2PiVbQovTYq3I5Mz9HIGDqdvmHSFcDx0KljiIn ivpg== MIME-Version: 1.0 X-Received: by 10.182.144.40 with SMTP id sj8mr13117991obb.82.1365360004671; Sun, 07 Apr 2013 11:40:04 -0700 (PDT) Received: by 10.182.237.65 with HTTP; Sun, 7 Apr 2013 11:40:04 -0700 (PDT) Received: by 10.182.237.65 with HTTP; Sun, 7 Apr 2013 11:40:04 -0700 (PDT) In-Reply-To: References: Date: Sun, 7 Apr 2013 12:40:04 -0600 Message-ID: Subject: Re: How To Retrieve JUST The Latest Rev Of A (Design) Doc - Check For CouchApp Update From: Brad Rhoads To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=14dae939992d11fe1a04d9c9a66b X-Virus-Checked: Checked by ClamAV on apache.org --14dae939992d11fe1a04d9c9a66b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: > 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 =EDrta: > > > 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 th= e > > 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 _desig= n > > 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 i= t. > > > > Any other approaches to this problem? > > > > Thanks for the help! > > --------------------------- > > www.maf.org/rhoads > > www.ontherhoads.org > > > --14dae939992d11fe1a04d9c9a66b--