This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Aggregate unread notif count query for badge count calculation #14255
Aggregate unread notif count query for badge count calculation #14255
Changes from 11 commits
b227cd3
9f9ac55
0919941
9ce71cb
0d9dda6
bd7c694
ffaba60
e343f6d
3cfe596
72e909e
e79bc72
54dae60
e0a1646
330dd4b
c510d1c
0f8524c
dc9e387
de2d9ba
72c7be1
4068079
ed3809f
cf98d16
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't this skip any threads which take place wholly after the latest summary? (I'm unsure why we care about whether we've seen the thread or not -- I thought the SQL query was only returning things with valid summaries in the first place?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The query after this one captures threads that only exist post-summary, this query is specifically to capture items in
event_push_actions
that do have valid summaries as well. This (all three queries in this method) was based off the thee single room calculations here:synapse/synapse/storage/databases/main/event_push_actions.py
Lines 586 to 740 in 09de2ae