zhaofengli / attic

Multi-tenant Nix Binary Cache
https://docs.attic.rs
Other
965 stars 73 forks source link

How important is the database? #125

Closed Nebucatnetzer closed 4 months ago

Nebucatnetzer commented 5 months ago

Can we reconstruct the database from the files or do we have to delete the whole cache when the DB gets lost?

cole-h commented 4 months ago

As far as I understand, the database is the source of truth. Without it, there's no way to go from stored chunk(s) to nar, since the chunks are just named {random_uuid}.chunk.

Nebucatnetzer commented 4 months ago

Makes sense thank you.