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

Convert the CacheManager class to use SQLite #28

Open
doccaz opened this issue Mar 26, 2022 · 0 comments
Open

Convert the CacheManager class to use SQLite #28

doccaz opened this issue Mar 26, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@doccaz
Copy link
Owner

doccaz commented Mar 26, 2022

Due to the potential amount of small writes with multiple instances, the current cache implementation (plain JSON file) only reads the cache at the startup, modifies it in-memory, then writes it at the end. This is not optimal, and as a collateral effect "only the last one wins". With an SQLite backend, I hope to mitigate this.

Curiously, the current implementation has the thread locking working fine and there have been no data corruptions, but SQLite would also help with that too.

@doccaz doccaz added the enhancement New feature or request label Mar 26, 2022
@doccaz doccaz self-assigned this Mar 26, 2022
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
None yet
Development

No branches or pull requests

1 participant