synapse icon indicating copy to clipboard operation
synapse copied to clipboard

If an event takes ages to persist it blocks other events from being notified

Open erikjohnston opened this issue 2 years ago • 2 comments

This is because we assign a stream ordering fairly early on, and we block notifying /sync streams / replication / etc about later events until the slow event has finished persisting.

One mitigation could be to assign a stream ordering as late as possible inside the transaction, to minimise the number of queries that could block future events.

erikjohnston avatar Nov 14 '23 17:11 erikjohnston

@erikjohnston did one of your recent PRs fix this?

clokep avatar Nov 20 '23 13:11 clokep

@erikjohnston did one of your recent PRs fix this?

Alas not, no. (I think we fixed an underlying cause of slow persists, maybe? But not this issue itself)

erikjohnston avatar Nov 20 '23 13:11 erikjohnston