Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

State group caches keep full state for too long, bloating the cache size. #13275

@erikjohnston

Description

@erikjohnston

We have a complicated set up for caching state look ups to handle both filtered and full state look ups. However, the eviction strategy is sub-optimal: we keep all cached values for a given state group until we stop querying for any keys in that state group.

This means that if we pull out and cache the full state for a state group, we will keep the full state in the cache even if we only query one type / state key pair periodically.

Ideally the cache would see that nothing has asked for the full state in a while and evict it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-TaskRefactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions