Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Don't pull out the full state when calculating push actions #13078

Merged
merged 56 commits into from
Jul 11, 2022

Conversation

erikjohnston
Copy link
Member

@erikjohnston erikjohnston commented Jun 16, 2022

Fixes #12653

@erikjohnston erikjohnston force-pushed the erikj/less_push_state branch 2 times, most recently from 3ce63fd to 2e4be71 Compare June 28, 2022 08:30
synapse/push/bulk_push_rule_evaluator.py Outdated Show resolved Hide resolved
synapse/push/bulk_push_rule_evaluator.py Outdated Show resolved Hide resolved
synapse/storage/_base.py Outdated Show resolved Hide resolved
@erikjohnston
Copy link
Member Author

Thanks Shay, this is really starting to look good! Had a quick look through what is currently there (not sure if it was ready for my review or not!), and it's mostly comments around getting the caching correct (which is always the really fiddly and brittle part). LMK if you want to jump on a call to discuss, exactly how to do caching isn't exactly obvious.

synapse/visibility.py Outdated Show resolved Hide resolved
@erikjohnston erikjohnston changed the base branch from develop to erikj/visibility_multiple_users July 11, 2022 10:16
@erikjohnston erikjohnston marked this pull request as ready for review July 11, 2022 10:19
@erikjohnston erikjohnston requested a review from a team as a code owner July 11, 2022 10:19
@DMRobertson DMRobertson self-assigned this Jul 11, 2022
Base automatically changed from erikj/visibility_multiple_users to develop July 11, 2022 13:14
Copy link
Contributor

@DMRobertson DMRobertson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TL;DR: nothing looks wrong; it looks simpler; it seems sane. Nitpicks and general reviewer arsey remains.

synapse/storage/databases/main/cache.py Outdated Show resolved Hide resolved
synapse/storage/_base.py Outdated Show resolved Hide resolved
synapse/storage/databases/main/roommember.py Outdated Show resolved Hide resolved
synapse/storage/databases/main/roommember.py Outdated Show resolved Hide resolved
synapse/push/bulk_push_rule_evaluator.py Outdated Show resolved Hide resolved
synapse/push/bulk_push_rule_evaluator.py Outdated Show resolved Hide resolved
synapse/push/bulk_push_rule_evaluator.py Outdated Show resolved Hide resolved
synapse/push/bulk_push_rule_evaluator.py Outdated Show resolved Hide resolved
synapse/push/bulk_push_rule_evaluator.py Outdated Show resolved Hide resolved
synapse/push/bulk_push_rule_evaluator.py Outdated Show resolved Hide resolved
Copy link
Contributor

@DMRobertson DMRobertson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sytest failure looks to be matrix-org/sytest#1125.

LGTM otherwise; I'm happy if CI is happy.

@erikjohnston erikjohnston enabled auto-merge (squash) July 11, 2022 20:03
@erikjohnston erikjohnston merged commit e5716b6 into develop Jul 11, 2022
@erikjohnston erikjohnston deleted the erikj/less_push_state branch July 11, 2022 20:08
erikjohnston added a commit that referenced this pull request Jul 20, 2022
This can cause a lot of extra load on servers with lots of appservice users. Introduced in #13078
Copy link

@Shudogg Shudogg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Msg

@richvdh richvdh mentioned this pull request Oct 20, 2022
4 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reduce the amount of room members we pull out when calculating push actions
5 participants