-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
until parameter for change request #4995
Comments
until=now is the default behaviour (that is, if you don't ask for feed=continuous) For any other value of |
Exactly, would like to have it for |
feed=continuous is as "efficient" as normal mode, it's the same code except it keeps reopening the database as it changes and sends the new updates. there is still no way for you to construct a future update sequence, and thus there's nothing you could pass as the I do not understand your need. |
normal feeds require several thousand http requests while continuous is a single streaming request. There is a significant difference in both overhead and latency. Even with tricks like keep alive and pipelining (I'm unsure how well those are actually supported). |
keepalive (multiple sequential send req, read resps on the same tcp connection) is supported (and encouraged!). pipelining (sending multiple requests before reading the first response) is also supported. I still don't see how you could know what value to pass to |
That's great! However, from our tests it's still a lot slower than a continuous feed in addition to that it takes more memory (at least on client side as we need a quite large batch size for optimal perf). Especially when running in clustered mode. Feel free to close if you still don't think it makes sense.
I would have a previously saved sequence or just pass |
are you perhaps buffering the entire response before processing it when not using feed=continuous? the response format is different, you see. for continuous we send a series of json objects separated by newlines. for normal, it's a single json object with all the docs within that. however we do intentionally put newlines between the items to make it easier to process in a streaming manner. normal:
continuous
|
(obviously you'd also need to strip the comma to process "normal" format as a stream but this is simple.) |
That's a good point! |
Would be nice to have an
until
parameter for change feeds that work similar tosince
but instead of start, it specifies the end of the feed, e.g.:/{db}/_changes?since=0&until=now
The text was updated successfully, but these errors were encountered: