dendrite/syncapi/storage
Till 0d0280cf5f
/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.
2023-01-17 10:08:23 +01:00
..
postgres /sync performance optimizations (#2927) 2023-01-17 10:08:23 +01:00
shared /sync performance optimizations (#2927) 2023-01-17 10:08:23 +01:00
sqlite3 /sync performance optimizations (#2927) 2023-01-17 10:08:23 +01:00
tables /sync performance optimizations (#2927) 2023-01-17 10:08:23 +01:00
interface.go /sync performance optimizations (#2927) 2023-01-17 10:08:23 +01:00
storage.go Global database connection pool (for monolith mode) (#2411) 2022-05-03 16:35:06 +01:00
storage_test.go /sync performance optimizations (#2927) 2023-01-17 10:08:23 +01:00
storage_wasm.go Global database connection pool (for monolith mode) (#2411) 2022-05-03 16:35:06 +01:00