dendrite/syncapi/streams
Joakim Recht 00217a69d1
Only fetch events once for all rooms (#3311)
This refactors `PDUStreamProvider` a bit so that it doesn't trigger a
database query per room, but instead utilizes the fact that it's
possible to bulk query. This improves sync performance significantly
when you have 1000s of rooms.

### Pull Request Checklist

<!-- Please read
https://matrix-org.github.io/dendrite/development/contributing before
submitting your pull request -->

* [x] I have added Go unit tests or [Complement integration
tests](https://github.com/matrix-org/complement) for this PR _or_ I have
justified why this PR doesn't need tests
* [x] Pull request includes a [sign off below using a legally
identifiable
name](https://matrix-org.github.io/dendrite/development/contributing#sign-off)
_or_ I have already signed off privately

Signed-off-by: `Joakim Recht <joakim@beyondwork.ai>`
2024-01-25 20:10:46 +01:00
..
stream_accountdata.go
stream_devicelist.go
stream_invite.go
stream_notificationdata.go
stream_pdu.go Only fetch events once for all rooms (#3311) 2024-01-25 20:10:46 +01:00
stream_presence.go
stream_receipt.go
stream_sendtodevice.go
stream_typing.go
streamprovider.go
streams.go
template_stream.go