forked-synapse/synapse/storage
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
..
engines Run Black. (#5482) 2019-06-20 19:32:02 +10:00
schema Run Black. (#5482) 2019-06-20 19:32:02 +10:00
util Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
__init__.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
_base.py Merge pull request #5499 from matrix-org/rav/cleanup_metrics 2019-06-24 17:12:54 +01:00
account_data.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
appservice.py Expose DataStore._get_events as get_events_as_list 2019-05-14 13:37:44 +01:00
background_updates.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
client_ips.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
deviceinbox.py Fix bug sending federation transactions with lots of EDUs 2019-06-10 16:22:45 +01:00
devices.py Refactor get_user_ids_changed to pull less from DB 2019-06-26 12:03:44 +01:00
directory.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
e2e_room_keys.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
end_to_end_keys.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
event_federation.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
event_push_actions.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
events_bg_updates.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
events_worker.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
events.py Black 2019-06-20 13:10:06 +01:00
filtering.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
group_server.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
keys.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
media_repository.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
monthly_active_users.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
openid.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
prepare_database.py Fix "Unexpected entry in 'full_schemas'" log warning (#5509) 2019-06-21 15:11:57 +01:00
presence.py Remove presence lists (#4989) 2019-04-03 11:11:15 +01:00
profile.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
push_rule.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
pusher.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
receipts.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
registration.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
rejections.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
relations.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
room.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
roommember.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
search.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
signatures.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
state_deltas.py Room Statistics (#4338) 2019-05-21 11:36:50 -05:00
state.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
stats.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
stream.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
tags.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
transactions.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00
user_directory.py Fix grammar and document get_current_users_in_room (#4998) 2019-04-03 14:32:20 +01:00
user_erasure_store.py Run black on the rest of the storage module (#4996) 2019-04-03 10:07:29 +01:00