-
Notifications
You must be signed in to change notification settings - Fork 1.5k
(#5196) - fix excessively long replication loop #5199
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
Conversation
|
So performance and replication are going to be my (and I am guessing most of pouch's) future concentrations so I am 👍 on merging this to solve the immediate issue, then hoping we have more comprehensive testing in place before it has a chance to be regressed, 👍 when green |
|
Yeah, I agree performance is something we should be taking more seriously. We really need tests in place for it (tests we pay attention to; I've been guilty of ignoring them for sure), otherwise we will continue regressing on perf. But I'll merge this for now! |
|
Just a quick note for future reference:
@daleharvey Concentrating on replication performance, I'd probably start with the batching immediacy issue (i.e. calls to @nolanlawson An idea to performance test this issue and avoid future regression:
|
|
@nolanlawson I added a Performance test here It seems to catch the behaviour quite well. Let me know what you think? |
Actually, there are only 7 xhr requests for a single document update using I had mistakenly disabled the cache in Chrome dev tools, which lead to extra pre-flight OPTIONS requests for CORS. Thus an extra 4 OPTIONS requests were made in my testing that would not usually occur in production. My bad! I still think there is room for improvement to not double up check-pointing using |
|
@dharders can you open up a new issue with that perf test, please? We should make it a permanent part of the test suite if it really susses out the error. |
This just contains the fix with no additional tests. Discussion in #5196 seems to indicate that a test would be very difficult to write, so I'm just opening a PR to see if it even passes Travis as-is.