0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-06-18 10:38:21 +02:00
synapse/changelog.d
Erik Johnston b11f7b5122
Improve DB performance of calculating badge counts for push. (#16756)
The crux of the change is to try and make the queries simpler and pull
out fewer rows. Before, there were quite a few joins against subqueries,
which caused postgres to pull out more rows than necessary.

Instead, let's simplify the query and do some of the filtering out in
Python instead, letting Postgres do better optimizations now that it
doesn't have to deal with joins against subqueries.

Review note: this is a complete rewrite of the function, so not sure how
useful the diff is.

---------

Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
2024-01-11 11:52:13 +00:00
..
.gitignore
7.misc Faster partial join to room with complex auth graph (#7) 2024-01-10 12:29:42 +00:00
16756.misc Improve DB performance of calculating badge counts for push. (#16756) 2024-01-11 11:52:13 +00:00
16766.misc Split up deleting devices into batches (#16766) 2024-01-10 13:55:16 +00:00
16776.misc Remove CI check for sign off (#16776) 2024-01-10 13:53:20 +00:00
16778.doc Add a link to the Request log format page from Logging Sample Config (#16778) 2024-01-10 13:34:55 +00:00
16781.misc Fix auto-merge CI to correctly wait for linting. (#16781) 2024-01-10 13:53:44 +00:00
16783.misc Faster load recents for sync (#16783) 2024-01-10 15:11:59 +00:00
16785.misc Reduce amount of state pulled out when querying federation hierachy (#16785) 2024-01-10 14:31:35 +00:00
16788.misc Pull less state out if we fail to backfill (#16788) 2024-01-10 14:42:13 +00:00
16806.misc Correctly handle OIDC config with no client_secret set (#16806) 2024-01-10 17:16:49 +00:00