DB optimizations

This commit is contained in:
Ali
2023-02-21 22:14:12 +04:00
parent 1bef1f55e4
commit 583210c7fb
4 changed files with 55 additions and 18 deletions

View File

@@ -565,7 +565,7 @@ public final class SqliteValueBox: ValueBox {
let allIsOk = Atomic<Bool>(value: false)
let removeDatabaseOnError = self.removeDatabaseOnError
let databasePath = self.databasePath
DispatchQueue.global().asyncAfter(deadline: .now() + 5.0, execute: {
DispatchQueue.global().asyncAfter(deadline: .now() + 15.0, execute: {
if allIsOk.with({ $0 }) == false {
postboxLog("Timeout reached, discarding database")
if removeDatabaseOnError {