So just to be clear I believe you are saying that:
Time 0 - User issues _changes with feed = normal and since = 0 and gets back a
changes feed with sequence ID 1.
Time 1 - A different user sneaks in, makes a change on the server and now
sequence ID is 2.
Time 2 - The user issues a _changes request with feed = longpoll and since = 1
If I understand what you are saying below the server will not in fact
immediately return the changes since ID 1? It will wait until ID = 3 and only
then return something?
________________________________________
From: [email protected] <[email protected]> on
behalf of Jens Alfke <[email protected]>
Sent: Tuesday, September 23, 2014 3:06 PM
To: [email protected]
Cc: Traun Leyden
Subject: Re: Normal and Longpoll
> On Sep 23, 2014, at 3:01 PM, Yaron Goland <[email protected]> wrote:
>
> Is there an actual need to start with normal and then switch to longpoll
Yes; otherwise if there are no new changes, you don't find out that fact -- the
longpoll just gets no response at all until an indefinite amount of time later
when a change does occur. That prevents the replicator from changing its state
to 'idle'.
--Jens
--
You received this message because you are subscribed to the Google Groups
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mobile-couchbase/505B621C-CC30-457E-BE40-8262B5C3F852%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mobile-couchbase/1411510347850.32994%40microsoft.com.
For more options, visit https://groups.google.com/d/optout.