This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Refactor getting replication updates from database v2. #7740
Merged
Merged
Changes from 11 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
eb46e7f
Move checking for limited state for pushers stream to store
erikjohnston 91935a1
Move checking for limited state for caches stream to store
erikjohnston b42df4d
Move checking for limited state for public rooms stream to store
erikjohnston fd047a4
Move checking for limited state for device lists stream to store
erikjohnston 95f75a7
Move checking for limited state for to device stream to store
erikjohnston 3739f42
Move checking for limited state for tags stream to store
erikjohnston 6739fd1
Move checking for limited state for groups stream to store
erikjohnston 6be8e3a
Move checking for limited state for user signature stream to store
erikjohnston e9b1125
Remove unused db_query_to_update_function
erikjohnston 8cd151b
Newsfile
erikjohnston 16f7524
Add back comment
erikjohnston 5ed4ee4
Add comment
erikjohnston a76a0f3
Merge remote-tracking branch 'origin/develop' into erikj/move_limited…
erikjohnston File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Refactor getting replication updates from database. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
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.
#7636 seems to use a mixture of
>
,>=
and==
to determine if the stream was limited. I'm not sure if this inconsistency is on purpose or not. I would have thought>
would be the proper choice here to avoid unnecessary work, but maybe that's wrong.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.
Ah, yes, sorry. It mostly depends on the SQL query. Some are
LIMIT ?
and so will only ever return at mostlimit
rows. Some have more fuzzy bounds and so could return more. I don't think anywhere uses>
? If they do it sounds like a bugThere 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.
Ah,
typing
uses>
, but that is a special case because we have all results in memory and don't query the DB with a limitThere 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.
Interesting. Is this worth a comment in any of the locations?
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.
I've added a comment to the typing one 👍