mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-05-04 09:10:49 -05:00
⚡ Improve blocktree storage performance
This commit is contained in:
@@ -85,6 +85,11 @@ func initDBTables() {
|
||||
if nil != err {
|
||||
logging.LogFatalf(logging.ExitCodeReadOnlyDatabase, "create table [blocktrees] failed: %s", err)
|
||||
}
|
||||
|
||||
_, err = db.Exec("CREATE INDEX idx_blocktrees_id ON blocktrees(id)")
|
||||
if nil != err {
|
||||
logging.LogFatalf(logging.ExitCodeReadOnlyDatabase, "create index [idx_blocktrees_id] failed: %s", err)
|
||||
}
|
||||
}
|
||||
|
||||
func initDBConnection() {
|
||||
|
||||
Reference in New Issue
Block a user