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.
Re-use work of getting state for a given
state_group
(_get_state_groups_from_groups
) #15617Re-use work of getting state for a given
state_group
(_get_state_groups_from_groups
) #15617Changes from 5 commits
4676e53
6a19afc
02a9959
5704e3b
3d80449
ab576b6
1f60fcb
333fc51
17aeee7
7abb745
79e6d61
4b2a5fe
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.
This PR hasn't made as big of an impact as I thought it would for that type of request. Are we still interested in a change like this? It may work well for sequential events that we backfill.
It seems like our
state_group
sharing is realllly sub-par and the way thatstate_groups
can only have a max of 100 hops puts an upper limit on how much gain this PR can give. I didn't anticipate that's howstate_groups
worked and thought it was onestate_group
per-state-change which it is until it starts doing snapshots.Maybe it's more interesting to improve our
state_group
logic to be much smarter first and we could re-visit something like this. Or look into the state compressor stuff to optimize our backlog which would help for the Matrix Public Archive. I'm not sure if the current state compressors optimize for disk space or sharing or how inter-related those two goals are.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.
To not complicate the diff, I've held off on applying the same treatment to SQLite.
We can iterate on this in another PR or just opt for people to use Postgres in order to see performance