mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 Improve data indexing performance when importing .sy.zip and markdown https://github.com/siyuan-note/siyuan/issues/10986
This commit is contained in:
parent
2bcf26166d
commit
f5ceb847f4
15 changed files with 45 additions and 33 deletions
|
|
@ -1309,7 +1309,7 @@ func (tx *Transaction) begin() (err error) {
|
|||
|
||||
func (tx *Transaction) commit() (err error) {
|
||||
for _, tree := range tx.trees {
|
||||
if err = writeJSONQueue(tree); nil != err {
|
||||
if err = writeTreeUpsertQueue(tree); nil != err {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -1474,7 +1474,7 @@ func refreshDynamicRefTexts(updatedDefNodes map[string]*ast.Node, updatedTrees m
|
|||
|
||||
// 3. 保存变更
|
||||
for _, tree := range changedRefTree {
|
||||
indexWriteJSONQueue(tree)
|
||||
indexWriteTreeUpsertQueue(tree)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue