Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Idea: Sending multiple events to a single room in a linked batch #12010

Open
reivilibre opened this issue Feb 16, 2022 · 1 comment
Open

Idea: Sending multiple events to a single room in a linked batch #12010

reivilibre opened this issue Feb 16, 2022 · 1 comment
Labels
A-Create-Room T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.

Comments

@reivilibre
Copy link
Contributor

reivilibre commented Feb 16, 2022

I floated this idea when we were trying to shut down a room and it took a while because it has to run state resolution after sending each event.

Instead of sending each event in a sequence one-by-one, can we come up with a scheme that sends a chain of events, such that all of them (except the first) have prev_events=[the previous one] and then make use of this in situations where we know we need to send multiple events?

This may help for:

  • batch sending (batch import of history)?
    • unsure if any work has already been done here to improve performance
  • shutdown rooms / mass leaves
  • room creation (there are a few events to be sent at once)
  • room upgrades?

and possibly others...

Edit: can't remember if there was an issue already open for this and can't dig it up, sorry if it's a duplicate.

@reivilibre reivilibre changed the title Idea: Sending multiple events to a single room in batch Idea: Sending multiple events to a single room in a linked batch Feb 16, 2022
@clokep
Copy link
Member

clokep commented Feb 16, 2022

Related to #11842

@erikjohnston erikjohnston added the T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements. label Feb 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Create-Room T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.
Projects
None yet
Development

No branches or pull requests

4 participants