mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-30 05:18:49 +01:00
⚡ Improve performance for data indexing https://github.com/siyuan-note/siyuan/issues/12777
This commit is contained in:
parent
2da4a885ef
commit
475155b7df
14 changed files with 17 additions and 62 deletions
|
|
@ -791,14 +791,14 @@ func FindReplace(keyword, replacement string, replaceTypes map[string]bool, ids
|
|||
util.PushEndlessProgress(fmt.Sprintf(Conf.Language(207), i+1, len(renameRoots)))
|
||||
}
|
||||
|
||||
sql.WaitForWritingDatabase()
|
||||
sql.FlushQueue()
|
||||
|
||||
reloadTreeIDs = gulu.Str.RemoveDuplicatedElem(reloadTreeIDs)
|
||||
for _, id := range reloadTreeIDs {
|
||||
refreshProtyle(id)
|
||||
}
|
||||
|
||||
sql.WaitForWritingDatabase()
|
||||
sql.FlushQueue()
|
||||
util.PushClearProgress()
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue