Why do I get notification for old deleted docs?

15 views
Skip to first unread message

Seung Chan Lim

unread,
Feb 20, 2015, 8:09:53 PM2/20/15
to mobile-c...@googlegroups.com
I see that if I ask for _changes since=0 I get notifications for docs that were DELETEd long time ago.

Why is this necessary?

slim

Jens Alfke

unread,
Feb 20, 2015, 9:21:41 PM2/20/15
to mobile-c...@googlegroups.com

On Feb 20, 2015, at 5:09 PM, Seung Chan Lim <djs...@gmail.com> wrote:

I see that if I ask for _changes since=0 I get notifications for docs that were DELETEd long time ago.
Why is this necessary?

Because deletions are events just like changes. And because a client pulling from the db needs to end up in a state where it knows the current state of the world, e.g. there used to be a doc ‘foo’ but it was deleted. Otherwise it might pull an earlier revision of ‘foo’ from a different server (that hasn’t heard about the deletion yet) and think that ‘foo’ still exists.

—Jens
Reply all
Reply to author
Forward
0 new messages