element-hq / element-meta

Shared/meta documentation and project artefacts for Element clients
65 stars 11 forks source link

[Story] 🦀 Event cache storage #2405

Open manuroe opened 2 months ago

manuroe commented 2 months ago

Description

This project is about to make the existing Event Cache API persistent. The event cache exists but it is a in-memory cache. We want it to be a on-disk cache.

Acceptance criteria

Leads

Size estimate

None

Dependencies

Out of scope

Open questions

### Questions

Subtasks

### Android
### iOS
### Rust
- [ ] https://github.com/matrix-org/matrix-rust-sdk/issues/3280
### Other

Sign-off

Android

iOS

Hywan commented 2 months ago

This cache is reset in case of a gap in the timeline

Why? We get gaps pretty often, what's the goal of this feature?

The room list pre-fills this cache with X last messages so that the timeline instantly displays when the user opens a room

It has nothing to do with the event cache storage right? It's a sync requirement (which is already present).

Hywan commented 2 months ago

The full issue that describes all the work is https://github.com/matrix-org/matrix-rust-sdk/issues/3280.