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

Fix deleting of old highlight notifications#15519

Closed
erikjohnston wants to merge 3 commits intodevelopfrom
erikj/epa_delete
Closed

Fix deleting of old highlight notifications#15519
erikjohnston wants to merge 3 commits intodevelopfrom
erikj/epa_delete

Conversation

@erikjohnston
Copy link
Member

In #13118 we accidentally stopped deleting old highlight notifications, and instead only deleted non-highlight notifications.

While we're here we also enforce that we use index scans (rather than seq scans), which we also do for state queries. The reason to enforce this is that we can't correctly get PostgreSQL to understand the distribution of stream_ordering depends on highlight, and so it always defaults (on matrix.org) to sequential scans. This was especially exacerbated by us keeping old highlight notifications around.

@clokep
Copy link
Member

clokep commented May 2, 2023

Mentioned in #6060 (comment), not sure if this fully fixes #6060 or not though?

@erikjohnston
Copy link
Member Author

Oh wait, le sigh, we don't actually add highlights to the summary table.

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.

2 participants