Skip to content

Conversation

@groyoh
Copy link
Contributor

@groyoh groyoh commented Oct 31, 2025

Context

We heavily rely on caching for improving the current usage performance. We do so by caching the fees as aggregating the events for fee calculating can be quite costly and impactful on the database resource.

While investigating, we noticed that the cached fees are stored with null attributes which can actually be removed before storing them.

Description

This removes the null attributes before storing the fees into cache. We explicitly define which attributes are compactable and which are not to avoid losing information. For instance, the grouped_by should keep the nil values.

We also reduced the compress_threshold to ensure that compacted cache entries will still be compressed.

@groyoh groyoh marked this pull request as ready for review November 5, 2025 09:20
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.

3 participants