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

feat(event cache): sqlite persistent storage for the event cache 😎 #4308

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

bnjbvr
Copy link
Member

@bnjbvr bnjbvr commented Nov 21, 2024

This implements the following parts of #3280 (comment):

  • implement a sqlite backend for the event cache store
  • save events into the store as they come from sync
  • reload data from the store and use it to prefill the linked chunks for all rooms

For getting a nice demo in the multiverse client, a few shortcuts have been taken in the last commit, but these should be relatively easy to solve.

The demo shows the following:

  • open the client for the first time
  • observe the focused room is mostly empty
  • I manually back-paginate, getting some events back from the server
  • then, close the client
  • reopen it
  • observe the events are still there (they were persisted on disk).
Screencast.From.2024-11-21.18-09-05.mp4

More to come next week.

@bnjbvr
Copy link
Member Author

bnjbvr commented Nov 28, 2024

For what it's worth, to observers of this PR: this is being split, redesigned and reviewed in several smaller PRs, which all link to this one. This PR might be repurposed to represent the final step of the work done here, at some point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant