mirror of
https://github.com/skidoodle/safebin.git
synced 2026-04-28 03:07:41 +02:00
perf(storage)!: optimize cleanup with secondary index
BREAKING CHANGE: This change requires a fresh database. Existing databases will lack the index, and the cleanup routine will not function correctly for pre-existing files. Signed-off-by: skidoodle <contact@albert.lol>
This commit is contained in:
@@ -35,9 +35,10 @@ const (
|
||||
MinRetention = 24 * time.Hour
|
||||
MaxRetention = 365 * 24 * time.Hour
|
||||
|
||||
DBFileName = "safebin.db"
|
||||
DBBucketName = "files"
|
||||
TempDirName = "tmp"
|
||||
DBFileName = "safebin.db"
|
||||
DBBucketName = "files"
|
||||
DBBucketIndexName = "expiry_index"
|
||||
TempDirName = "tmp"
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
|
||||
Reference in New Issue
Block a user