diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-08-20 16:24:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-20 16:24:33 +0100 |
commit | 068a3d3c9f9be3473b68e3a13912182caf1c7117 (patch) | |
tree | 1a4731a46ea5f484c573b7245a078bae1f9c4b8e /roomserver/storage/interface.go | |
parent | 0fea056db43c11c5de97fd96bcc60703ca1b4c08 (diff) |
Roomserver per-room input parallelisation (Postgres) (#1289)
* Per-room input mutex
* GetMembership should use transaction when assigning state key NID
* Actually use writer transactions rather than ignoring them
* Limit per-room mutexes to Postgres
* Flip the check in InputRoomEvents
Diffstat (limited to 'roomserver/storage/interface.go')
-rw-r--r-- | roomserver/storage/interface.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/roomserver/storage/interface.go b/roomserver/storage/interface.go index 988fc908..545885f7 100644 --- a/roomserver/storage/interface.go +++ b/roomserver/storage/interface.go @@ -24,6 +24,8 @@ import ( ) type Database interface { + // Do we support processing input events for more than one room at a time? + SupportsConcurrentRoomInputs() bool // Store the room state at an event in the database AddState( ctx context.Context, |