mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-04 10:31:53 +08:00
⚡ Improve blocktree storage performance
This commit is contained in:
parent
eb0879812f
commit
6fc0e43b77
@ -85,6 +85,11 @@ func initDBTables() {
|
|||||||
if nil != err {
|
if nil != err {
|
||||||
logging.LogFatalf(logging.ExitCodeReadOnlyDatabase, "create table [blocktrees] failed: %s", 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() {
|
func initDBConnection() {
|
||||||
|
Loading…
Reference in New Issue
Block a user