Skip to content

_auth_and_persist_outliers could do with being optimised #11013

@matrixbot

Description

@matrixbot

This issue has been migrated from #11013.


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).

matrix-org/synapse#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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions