Manually vacuum the DB every time the app is started
This commit is contained in:
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…
Reference in New Issue