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.
Limit and filter the number of backfill points to get from the database #13879
Limit and filter the number of backfill points to get from the database #13879
Changes from 92 commits
e0d7fab
b8d55d3
f63d823
bec26e2
fee37c3
d1290be
f9119d0
f5c6fe7
16ebec0
ce07aa1
5811ba1
cf2b093
cbb4194
621c5d3
75c07bb
783cce5
54ef84b
7bf3e7f
37ff009
a58d191
f127ad1
18abbf4
23310f5
64e01d8
47bac25
2ebed9d
60b3b92
e9f603d
a8f1464
bbd1c94
dd1db25
c583eef
ea4a3ad
f495752
f2061b9
e4192d7
7a44932
86d98ca
29f584e
506a8dd
361ce5c
b09d8a2
965d142
267777f
d0cd42a
3d9f625
33a3c64
6736d10
6eba1d4
1464101
71c7738
df8c76d
d45b078
c939422
599e212
bc8046b
ea08006
9a85bb4
7204cce
8f214b1
33ad64e
63bec99
31d7502
0b5f1db
4ce7709
d3a1f84
1347686
57182dc
e58bc65
70019d2
46a1a20
91c5be0
7ea40b1
40ec8d8
47aa375
1208540
1738619
3f1b695
aae06fd
bae72e4
4f2b3ae
44e2a5d
685bbee
9921f24
7c96481
b7368ba
4823bb2
829cef8
db90283
aba8b0f
e727a31
379ccb4
21f5933
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.
we could maybe use
heapq.merge
if both these lists are sorted?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.
@squahtx mentioned this in #13635 (comment) when I asked about any potential two already sorted lists optimizations. Do we want to do this though?
In this PR, we're also adding the
limit
so we're only sorting 100 events max, I am leaning towards keeping it simple or at least more familiar to the rest of the Synapse code 🤷 - No benchmarks done though and I don't have a reference for how common/knownheapq.merge
is besides the two usages in Synapse already.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.
🤷