Manually vacuum the DB every time the app is started

pull/388/head
Niels Andriesse 3 years ago
parent b73832438a
commit edd9139fe0

@ -70,6 +70,9 @@ void VerifyRegistrationsForPrimaryStorage(OWSStorage *storage)
_dbReadWriteConnection = [self newDatabaseConnection];
_uiDatabaseConnection = [self newDatabaseConnection];
// Vacuum the database
[self.dbReadWriteConnection vacuum];
// Increase object cache limit. Default is 250.
_uiDatabaseConnection.objectCacheLimit = 500;
[_uiDatabaseConnection beginLongLivedReadTransaction];

Loading…
Cancel
Save