-
-
Notifications
You must be signed in to change notification settings - Fork 677
Conversation
I think I tried something similar, but that made Sytest unhappy with regards to newly joined rooms on incremental syncs. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #3311 +/- ##
==========================================
+ Coverage 65.71% 65.85% +0.13%
==========================================
Files 507 509 +2
Lines 57291 58904 +1613
==========================================
+ Hits 37651 38793 +1142
- Misses 15830 16207 +377
- Partials 3810 3904 +94
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Hmm yes I see - I have changed it a bit so that it handles the newly joined case too, and that seems to make tests run locally at least. |
I see a build is still failing, but I'm not sure the failure is related to my change? |
Looks more like GHA being upset. Started a retry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you!
I'd like to test this on my server for a bit before merging, but my server is down as of today.. (disc I/O issues, as it seems :/)
Right, so regarding speed, it doesn't seem to change that much (well, at least for my few rooms). Most of the time is spent in |
I expect for a few rooms it doesn't make any noticeable difference, but if you have many (1000s) it's very significant |
Thank you for this! :) |
This refactors
PDUStreamProvider
a bit so that it doesn't trigger a database query per room, but instead utilizes the fact that it's possible to bulk query. This improves sync performance significantly when you have 1000s of rooms.Pull Request Checklist
Signed-off-by:
Joakim Recht <joakim@beyondwork.ai>