🎨 Improve data indexing performance when importing .sy.zip and markdown https://github.com/siyuan-note/siyuan/issues/10986
This commit is contained in:
parent
d5cf99f0e9
commit
2bcf26166d
1 changed files with 3 additions and 2 deletions
|
@ -549,7 +549,7 @@ func ImportSY(zipPath, boxID, toPath string) (err error) {
|
|||
}
|
||||
|
||||
treenode.IndexBlockTree(tree)
|
||||
sql.UpsertTreeQueue(tree)
|
||||
sql.IndexTreeQueue(tree)
|
||||
}
|
||||
|
||||
IncSync()
|
||||
|
@ -894,7 +894,8 @@ func ImportFromLocalPath(boxID, localPath string, toPath string) (err error) {
|
|||
buildBlockRefInText()
|
||||
|
||||
for i, tree := range importTrees {
|
||||
indexWriteJSONQueue(tree)
|
||||
treenode.IndexBlockTree(tree)
|
||||
sql.IndexTreeQueue(tree)
|
||||
if 0 == i%4 {
|
||||
util.PushEndlessProgress(fmt.Sprintf(Conf.Language(66), fmt.Sprintf("%d/%d ", i, len(importTrees))+tree.HPath))
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue