-
Notifications
You must be signed in to change notification settings - Fork 42
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
investigate how to speed up update_sources #1009
Comments
(assigning @rmol to this one as he's made some progress on this on option 2 (bulk) above) |
While doing scalability testing on Friday, I was able to measure how long it took on average to get 300 sources (each run with a clean local database): sources=300, messages=600, replies=600, run_count=3
|
Were those timings taken on master or with the speedsync branch? I've seen |
I'm sure the |
Ah, so measurements in #648 are without tor, and these measurements were with tor (makes sense since we're talking about reducing the time for the user to get feedback that things are updating), which I think explains the discrepancy - since the comment in #648, we reduced the compute time on the server side to <2s but the response won't be that snappy since the response for
|
While it's much improved, the logic in our metadata sync doesn't scale to 1000 sources. On first sync, the logic in
update_source
must run for all sources, which currently can take 10s of seconds up to a minute or so.One option is to process one source at a time:
Another option is for the sources in bulk:
The text was updated successfully, but these errors were encountered: