aboutsummaryrefslogtreecommitdiff
path: root/federationapi/routing/query.go
diff options
context:
space:
mode:
authorTill <2353100+S7evinK@users.noreply.github.com>2023-01-17 10:08:23 +0100
committerGitHub <noreply@github.com>2023-01-17 10:08:23 +0100
commit0d0280cf5ff71ec975b17d0f6dadcae7e46574b5 (patch)
treea13e07f0f775029c1929792b072841657b3a5bcf /federationapi/routing/query.go
parent8582c7520abbfca680da9ba16e40a9a92b9fd21c (diff)
`/sync` performance optimizations (#2927)
Since #2849 there is no limit for the current state we fetch to calculate history visibility. In large rooms this can cause us to fetch thousands of membership events we don't really care about. This now only gets the state event types and senders in our timeline, which should significantly reduce the amount of events we fetch from the database. Also removes `MaxTopologicalPosition`, as it is an unnecessary DB call, given we use the result in `topological_position < $1` calls.
Diffstat (limited to 'federationapi/routing/query.go')
0 files changed, 0 insertions, 0 deletions