mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve boot logging for database
This commit is contained in:
parent
2d8152381c
commit
c925f06326
4 changed files with 20 additions and 7 deletions
|
|
@ -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" +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue