famedly / matrix-dart-sdk

Matrix SDK written in pure Dart.
GNU Affero General Public License v3.0
52 stars 30 forks source link

refactor: Store not uploaded group sessions in its own database queue #1814

Closed krille-chan closed 3 months ago

krille-chan commented 3 months ago

This should highly increase the performance as right now for every sync ALL inbound group sessions are loaded from the database and checked if they need an upload. So if a user has 10k stored sessions locally, this would probably let the whole application lag a lot. This stores the sessions which need upload in a different table now, similar how we do this with the to device queue.

Closes https://github.com/famedly/matrix-dart-sdk/issues/1587