mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-07 16:04:19 +01:00
⚡ Improve data indexing to reduce disk read operations https://github.com/siyuan-note/siyuan/issues/16958
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
ed1c8a1fb6
commit
5d70341ebe
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ func initDBTables() {
|
|||
|
||||
_, err = db.Exec("CREATE INDEX idx_blocktrees_root_id ON blocktrees(root_id)")
|
||||
if err != nil {
|
||||
logging.LogFatalf(logging.ExitCodeUnavailableDatabase, "create index [idx_blocktrees_id] failed: %s", err)
|
||||
logging.LogFatalf(logging.ExitCodeUnavailableDatabase, "create index [idx_blocktrees_root_id] failed: %s", err)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue