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

Disable or limit caches when db-sync reaches the tip of the chain #1843

Closed
kderme opened this issue Sep 3, 2024 · 1 comment · Fixed by #1886
Closed

Disable or limit caches when db-sync reaches the tip of the chain #1843

kderme opened this issue Sep 3, 2024 · 1 comment · Fixed by #1886
Assignees
Labels
enhancement New feature or request

Comments

@kderme
Copy link
Contributor

kderme commented Sep 3, 2024

Caches are used to speed up syncing. However they use memory. We could disable or reduce the caches when db-sync approaches the tip of the chain ie 30 mins before tip.

@kderme kderme added the enhancement New feature or request label Sep 3, 2024
@kderme kderme added this to DBSync Sep 3, 2024
@Cmdv Cmdv self-assigned this Oct 25, 2024
@Cmdv
Copy link
Contributor

Cmdv commented Oct 31, 2024

what to do with each cache:

cPools leave as is
cPrevBlock leave as is
cStats leave as is
cEpoch leave as is
cTxId delete and don't use again
cStake delete and don't use again
cDatum delete and don't use again
cMultiAssets delete and limit the size of LRU

@github-project-automation github-project-automation bot moved this from In Progress to Done in DBSync Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants