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

Key backup restore API lacks sensible pagination #2176

Open
Tracked by #757
richvdh opened this issue Nov 7, 2023 · 0 comments
Open
Tracked by #757

Key backup restore API lacks sensible pagination #2176

richvdh opened this issue Nov 7, 2023 · 0 comments

Comments

@richvdh
Copy link
Member

richvdh commented Nov 7, 2023

The existing key backup restore API offers three ways to fetch backups:

  • You can get the full backup at once, which is slow and impractical for huge backups (several 10s of minutes for big backups).
  • It allows queries per session and in this case will require a lot of requests to get history.
  • Finally it’s possible to get all keys for a given room but with no particular order. This can still take a long time and will retrieve old keys for history that is not even downloaded on the client.

A better API should provide access to keys for a given room with pagination, allowing a new login to decrypt recent history very quickly. This is particularly useful when using next gen clients that will do a lot of smart spidering to just bottleneck on the download of keys.

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