forked-synapse/synapse
Erik Johnston a2f6d31a63 Refactor get_user_ids_changed to pull less from DB
When a client asks for users whose devices have changed since a token we
used to pull *all* users from the database since the token, which could
easily be thousands of rows for old tokens.

This PR changes this to only check for changes for users the client is
actually interested in.

Fixes #5553
2019-06-26 12:03:44 +01:00
..
_scripts Run Black. (#5482) 2019-06-20 19:32:02 +10:00
api Run Black. (#5482) 2019-06-20 19:32:02 +10:00
app Drop support for cpu_affinity (#5525) 2019-06-22 11:01:55 +10:00
appservice Run Black. (#5482) 2019-06-20 19:32:02 +10:00
config Merge pull request #5524 from matrix-org/rav/new_cmdline_options 2019-06-24 17:25:57 +01:00
crypto Run Black. (#5482) 2019-06-20 19:32:02 +10:00
events Run Black. (#5482) 2019-06-20 19:32:02 +10:00
federation Split public rooms directory auth config in two 2019-06-24 15:42:31 +01:00
groups Run Black. (#5482) 2019-06-20 19:32:02 +10:00
handlers Refactor get_user_ids_changed to pull less from DB 2019-06-26 12:03:44 +01:00
http Run Black. (#5482) 2019-06-20 19:32:02 +10:00
metrics Run Black. (#5482) 2019-06-20 19:32:02 +10:00
module_api Run Black. (#5482) 2019-06-20 19:32:02 +10:00
push Improve email notification logging (#5502) 2019-06-20 15:14:26 +01:00
replication Run Black. (#5482) 2019-06-20 19:32:02 +10:00
res/templates Change password reset links to /_matrix. 2019-06-11 11:34:33 +01:00
rest Split public rooms directory auth config in two 2019-06-24 15:42:31 +01:00
server_notices Run Black. (#5482) 2019-06-20 19:32:02 +10:00
state Merge branch 'develop' of github.com:matrix-org/synapse into erikj/histogram_extremities 2019-06-20 11:59:14 +01:00
static Avoid redundant URL encoding (#4555) 2019-04-04 12:05:56 +01:00
storage Refactor get_user_ids_changed to pull less from DB 2019-06-26 12:03:44 +01:00
streams Fix /messages on workers when no from param specified. 2019-06-24 10:06:51 +01:00
util Prevent multiple upgrades on the same room at once (#5051) 2019-06-25 14:19:21 +01:00
__init__.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
event_auth.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
notifier.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
python_dependencies.py Only import jinja2 when needed (#5514) 2019-06-21 16:52:09 +01:00
secrets.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
server.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
server.pyi Run Black. (#5482) 2019-06-20 19:32:02 +10:00
types.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
visibility.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00