mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 00:04:25 +00:00
Vacuum SyncDatabase every 11 days.
This commit is contained in:
1 parent
ee3e179413
commit
c609d485cf
2 files changed
+22
-2
No files matched your search
@@ -17,8 +17,7 @@ public actor SyncDatabase {
|
||||
public init(databasePath: String) {
|
||||
let database = FMDatabase.openAndSetUpDatabase(path: databasePath)
|
||||
database.runCreateStatements(Self.tableCreationStatements)
|
||||
// TODO: vacuum every 11 days
|
||||
database.vacuum()
|
||||
database.vacuumIfNeeded(daysBetweenVacuums: 11, filepath: databasePath)
|
||||
|
||||
self.database = database
|
||||
self.databasePath = databasePath
|
||||
|
||||
Reference in new issue
Block a user