incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Cottlehuber <>
Subject Re: any good way of filtering out your own _changes?
Date Thu, 04 Oct 2012 18:26:20 GMT
On 4 October 2012 19:34, svilen <> wrote:
> ahha. i'll have a look.
> i made quickly something like this - 100 lines wrapper of
> python-couchdb Database class. It seems to work filtering out changes,
> but as not all operations end in the changes-feed (say from 4 updates
> and a delete of same doc, only the delete comes in the feed), the cache
> that remembers all ops may grow.
> or maybe i'm missing something around the list of revs field in the
> feed..
> btw are rev-ids alone uniq enough (per database), or is (id,rev) the
> uniq thing?

You should use id + rev together. The rev is currently based on md5 of
the doc itself so in practice they're not likely to collide, but I'd
not recommend this.


View raw message