Moving to a content addressed cache for SQLite #5350
brecert
started this conversation in
New Features
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is a wishlist item of mine for the upcoming switch to SQLite for the database, I ask that the cache be considered to be made content addressed- that is the content hash of the file is the "address" (file name in this case) of it.
I believe the cloud already does this for assets, so I'd like to see it happen for the cache too.
External references could be made into fs level content addressed links pointing to the actual content they point to, this approach would also work for asset variants.
Some immediate benefits of this:
(I checked this using a script I made some time ago because I was curious)
(similarly, due to often running multiple different instances, I end up with a lot of duplicate items in the cache)
Some potential future benefits:
this can be done by viewing the content addressed cache as a distributed hash table.
A minor downside to this approach (file based) to content addressing is that you're more reliant on the host fs but I don't believe it'd be too much of an issue, I've implemented fs based content addressed storage in the past that was multiplatform without major issues.
Beta Was this translation helpful? Give feedback.
All reactions