aboutsummaryrefslogtreecommitdiff
path: root/internal/sqlutil/sqlutil.go
diff options
context:
space:
mode:
authorTill <2353100+S7evinK@users.noreply.github.com>2024-12-19 21:24:52 +0100
committerGitHub <noreply@github.com>2024-12-19 20:24:52 +0000
commitadd73ec8661b2a156f6d217594fe3471951cfb08 (patch)
tree9abd7351b867443f4fd1771a179b5063b0121e3d /internal/sqlutil/sqlutil.go
parent294f3d2a10ec96728506161f455953d05d6f0319 (diff)
Speed up loading ACLs on startup (#3469)
Currently d.m.org struggles to start, as it is fetching several thousand ACLs on startup. The reason is that we're loading the entire room state into memory, only to filter out the majority of it, because we only care about certain types. This change filters the types (tuples) directly when querying the database, so we don't end up with unneeded state.
Diffstat (limited to 'internal/sqlutil/sqlutil.go')
0 files changed, 0 insertions, 0 deletions