This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
_auth_and_persist_outliers
could do with being optimised
#11013
Labels
A-Performance
Performance, both client-facing and admin-facing
T-Task
Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.
As part of my work on #9595, I've ended up making some of the code which persists events received over federation a bit more conservative. (Specifically, this is the code for handling batches of outliers, in
FederationEventHandler._auth_and_persist_outliers
).#10896 (comment) raised the concern that this could result in a lot of round-trips between the federation inbound worker and the event persister.
It should be possible to optimise all this, so that we do all the event auth first, and then persist everything in one big chunk.
The text was updated successfully, but these errors were encountered: