🎨 Improve boot logging for database

This commit is contained in:
Daniel 2024-12-27 19:50:08 +08:00
parent 2d8152381c
commit c925f06326
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 20 additions and 7 deletions

View file

@ -225,6 +225,8 @@ func initDBConnection() {
if nil != db {
closeDatabase()
}
util.LogDatabaseSize(util.DBPath)
dsn := util.DBPath + "?_journal_mode=WAL" +
"&_synchronous=OFF" +
"&_mmap_size=2684354560" +
@ -272,6 +274,7 @@ func initHistoryDBConnection() {
historyDB.Close()
}
util.LogDatabaseSize(util.HistoryDBPath)
dsn := util.HistoryDBPath + "?_journal_mode=WAL" +
"&_synchronous=OFF" +
"&_mmap_size=2684354560" +
@ -327,6 +330,7 @@ func initAssetContentDBConnection() {
assetContentDB.Close()
}
util.LogDatabaseSize(util.AssetContentDBPath)
dsn := util.AssetContentDBPath + "?_journal_mode=WAL" +
"&_synchronous=OFF" +
"&_mmap_size=2684354560" +