Some migration fixes and database optimizations

This commit is contained in:
Gabe Kangas
2021-07-22 23:28:01 -07:00
parent c4c1ecfc7b
commit 484098afda
5 changed files with 41 additions and 27 deletions

View File

@@ -45,7 +45,7 @@ func SetupPersistence(file string) error {
}
}
db, err := sql.Open("sqlite3", fmt.Sprintf("file:%s", file))
db, err := sql.Open("sqlite3", fmt.Sprintf("file:%s?_cache_size=10000", file))
db.SetMaxOpenConns(1)
_db = db