MatrixSynapse/synapse/storage/databases/main
Erik Johnston c4fa4f37cb
Fix perf of fetching the same events many times. (#10703)
The code to deduplicate repeated fetches of the same set of events was
N^2 (over the number of events requested), which could lead to a process
being completely wedged.

The main fix is to deduplicate the returned deferreds so we only await
on a deferred once rather than many times. Seperately, when handling the
returned events from the defrered we only add the events we care about
to the event map to be returned (so that we don't pay the price of
inserting extraneous events into the dict).
2021-08-27 09:15:50 +00:00
..
__init__.py Persist room hierarchy pagination sessions to the database. (#10613) 2021-08-24 08:14:03 -04:00
account_data.py
appservice.py
cache.py
censor_events.py
client_ips.py
deviceinbox.py
devices.py
directory.py
e2e_room_keys.py
end_to_end_keys.py
event_federation.py Add support for MSC2716 marker events (#10498) 2021-08-04 12:07:57 -05:00
event_push_actions.py
events.py Add support for MSC2716 marker events (#10498) 2021-08-04 12:07:57 -05:00
events_bg_updates.py
events_forward_extremities.py
events_worker.py Fix perf of fetching the same events many times. (#10703) 2021-08-27 09:15:50 +00:00
filtering.py
group_server.py
keys.py
lock.py
media_repository.py
metrics.py
monthly_active_users.py
openid.py
presence.py
profile.py
purge_events.py Make `backfill` and `get_missing_events` use the same codepath (#10645) 2021-08-26 18:34:57 +01:00
push_rule.py
pusher.py Remove pushers when deleting 3pid from account (#10581) 2021-08-26 13:53:57 +01:00
receipts.py
registration.py Implement MSC3231: Token authenticated registration (#10142) 2021-08-21 22:14:43 +01:00
rejections.py
relations.py
room.py Allow /createRoom to be run on workers (#10564) 2021-08-17 14:33:16 +01:00
roommember.py Do not include rooms with an unknown room version in a sync response. (#10644) 2021-08-19 11:12:55 -04:00
search.py
session.py Persist room hierarchy pagination sessions to the database. (#10613) 2021-08-24 08:14:03 -04:00
signatures.py
state.py
state_deltas.py
stats.py
stream.py
tags.py
transactions.py
ui_auth.py Implement MSC3231: Token authenticated registration (#10142) 2021-08-21 22:14:43 +01:00
user_directory.py Convert room member storage tuples to attrs. (#10629) 2021-08-18 09:22:07 -04:00
user_erasure_store.py