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
Draft: Optimize MSC2716 /batch_send
endpoint v1
#11778
Closed
Closed
Changes from all commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
f30302d
Scratch debugging why events appear out of order on remote homeservers
MadLittleMods 438e222
Use OrderedDict to gurantee order returned is the same as we were bui…
MadLittleMods 4983739
Avoid constant missing prev_event fetching while backfilling
MadLittleMods a64bb2e
Add changelog
MadLittleMods 260ca06
Some more trials of trying to get many many events to backfill in ord…
MadLittleMods 886071b
Fix backfill not picking up batch events connected to non-base insert…
MadLittleMods 477c15d
Some more debug logging
MadLittleMods 4191f56
Remove fake prev events from historical state chain
MadLittleMods f39c1da
Remove debug logging
MadLittleMods 7da8012
Remove extra event info
MadLittleMods 69dfa16
Move to sorting the backfill events in the existing sorted
MadLittleMods 83474d9
Put MSC2716 backfill logic behind experimental feature flag
MadLittleMods 1263c7e
Remove unused import
MadLittleMods ee47878
Fix mypy lints
MadLittleMods 5bfde7b
Merge branch 'master' into madlittlemods/return-historical-events-in-…
MadLittleMods 2fbe3f1
Merge branch 'develop' into madlittlemods/return-historical-events-in…
MadLittleMods 1d3f417
Revert back to string interpolation for SQL boolean value
MadLittleMods 4a12304
Put empty prev_events behind new room version
MadLittleMods 9a6d8fa
WIP: Don't include the event we branch from
MadLittleMods 3e09d49
Revert "WIP: Don't include the event we branch from"
MadLittleMods 5afc264
WIP: Sort events topologically when we receive them over backfill
MadLittleMods 6ea263b
Revert "WIP: Sort events topologically when we receive them over back…
MadLittleMods 3d387f9
WIP: Sort events topologically when we receive them over backfill
MadLittleMods fb8e281
Fix direction of fake edges
MadLittleMods c772b35
Implement backfill in handler so we can do fetching later
MadLittleMods e0ff66d
Fix backfill being able to cleanly branch into history and back to "l…
MadLittleMods 76d454f
Some backfill receive sorting fixes but not using it yet
MadLittleMods 3529449
Fix lints
MadLittleMods 321f9ea
Move back to the old get_backfill_events and simplify backfill.
MadLittleMods 15c3282
Remove the new backfill implementation and pull some good parts of th…
MadLittleMods 5db717a
Always process marker events regardless if backfilled
MadLittleMods e96fd5c
Add comment docs
MadLittleMods f3b7b3e
Add better explanatory comment
MadLittleMods 7f2105a
Remove topological sort when receiving backfill events
MadLittleMods 246278e
Fix lints
MadLittleMods ec35be5
Merge branch 'develop' into madlittlemods/return-historical-events-in…
MadLittleMods bc0ba8c
Protect from no auth events for non-existent provided prev_event
MadLittleMods 363aed6
Revert unused refactor to get PDU raw
MadLittleMods d771fbd
Only run the tests package to get streaming Complement output
MadLittleMods b559e23
Merge branch 'develop' into madlittlemods/return-historical-events-in…
MadLittleMods 6b64184
Merge branch 'develop' into madlittlemods/return-historical-events-in…
MadLittleMods 1d00043
Merge branch 'develop' into madlittlemods/return-historical-events-in…
MadLittleMods b071426
Plumb allow_no_prev_events through for MSC2716
MadLittleMods ec33a40
Make the historical events float separately from the state chain
MadLittleMods b99efa8
Plumb allow_no_prev_events through create_and_send_nonmember_event
MadLittleMods 3810ae1
Clarify comments
MadLittleMods df2a152
Fix NPE when trying to grab event from wrong roomId (fix sytest)
MadLittleMods cc4eb72
Merge branch 'develop' into madlittlemods/return-historical-events-in…
MadLittleMods 491e91d
Cache event creation info and context
MadLittleMods e0b7186
We only have to store the state_group for events created by create_ev…
MadLittleMods a032104
Only share auth_event_ids when sender and type matches
MadLittleMods 780d358
Remove auth_event_id caching is it doesn't make a noticeable difference
MadLittleMods 7396f7c
Restore auth_event_id caching as it does something looking closer at …
MadLittleMods 55ef667
Add extra potential check
MadLittleMods 47590bb
Merge branch 'develop' into madlittlemods/return-historical-events-in…
MadLittleMods a38befa
Some review optimizations
MadLittleMods 033360a
Fix lints
MadLittleMods 3f22e42
Fix unused lint
MadLittleMods e5670ff
Fix lints
MadLittleMods 023bd3e
Don't run MSC2716 complement tests for everyone
MadLittleMods b3fcffb
Use same txn iteration optimization
MadLittleMods cb0ff0b
Merge branch 'madlittlemods/return-historical-events-in-order-from-ba…
MadLittleMods 4d9e904
Merge branch 'develop' into madlittlemods/optimize-msc2716-v1
MadLittleMods 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
|
||
from typing import Optional | ||
|
||
from typing import List | ||
from synapse.storage._base import SQLBaseStore | ||
|
||
|
||
|
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.
TODO: Revert before merge