how about filtered /_changes?

> Brad Rhoads <[email protected]> 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" <[email protected]> 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" <[email protected]> ezt írta:
> >
> > > 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?
> > >

Reply via email to