MatrixSynapse/synapse/_scripts
Erik Johnston 0d1d3e0708
Speed up `get_unread_event_push_actions_by_room` (#13005)
Fixes #11887 hopefully.

The core change here is that `event_push_summary` now holds a summary of counts up until a much more recent point, meaning that the range of rows we need to count in `event_push_actions` is much smaller.

This needs two major changes:
1. When we get a receipt we need to recalculate `event_push_summary` rather than just delete it
2. The logic for deleting `event_push_actions` is now divorced from calculating `event_push_summary`.

In future it would be good to calculate `event_push_summary` while we persist a new event (it should just be a case of adding one to the relevant rows in `event_push_summary`), as that will further simplify the get counts logic and remove the need for us to periodically update `event_push_summary` in a background job.
2022-06-15 15:17:14 +00:00
..
__init__.py Port register_new_matrix_user to Python 3 and add tests (#4085) 2018-10-26 22:05:22 +11:00
export_signing_key.py Disallow untyped defs in synapse._scripts (#12422) 2022-04-11 12:41:55 +01:00
generate_config.py Disallow untyped defs in synapse._scripts (#12422) 2022-04-11 12:41:55 +01:00
generate_log_config.py Disallow untyped defs in synapse._scripts (#12422) 2022-04-11 12:41:55 +01:00
generate_signing_key.py Disallow untyped defs in synapse._scripts (#12422) 2022-04-11 12:41:55 +01:00
hash_password.py hash_password: raise an error if no config file is specified (#12789) 2022-05-19 13:03:13 +00:00
move_remote_media_to_new_store.py Disallow untyped defs in synapse._scripts (#12422) 2022-04-11 12:41:55 +01:00
register_new_matrix_user.py Disallow untyped defs in synapse._scripts (#12422) 2022-04-11 12:41:55 +01:00
review_recent_signups.py Add missing type hints to config classes. (#12402) 2022-04-11 12:07:23 -04:00
synapse_port_db.py Speed up `get_unread_event_push_actions_by_room` (#13005) 2022-06-15 15:17:14 +00:00
synctl.py Disallow untyped defs in synapse._scripts (#12422) 2022-04-11 12:41:55 +01:00
update_synapse_database.py Fix Synapse git info missing in version strings (#12973) 2022-06-07 15:24:11 +01:00