🎨 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

@ -96,6 +96,8 @@ func initDBConnection() {
if nil != db {
closeDatabase()
}
util.LogDatabaseSize(util.BlockTreeDBPath)
dsn := util.BlockTreeDBPath + "?_journal_mode=WAL" +
"&_synchronous=OFF" +
"&_mmap_size=2684354560" +