Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
matrixbot opened this issue Dec 19, 2023 · 0 comments
Open

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

matrixbot opened this issue Dec 19, 2023 · 0 comments

Comments

@matrixbot
Copy link
Collaborator

matrixbot commented Dec 19, 2023

This issue has been migrated from #12010.


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.

@matrixbot matrixbot changed the title Dummy issue Idea: Sending multiple events to a single room in a linked batch Dec 21, 2023
@matrixbot matrixbot reopened this Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant