mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
⚡ Reduce disk reads when editing documents https://github.com/siyuan-note/siyuan/issues/10961
This commit is contained in:
parent
b0fecae66e
commit
a5ec51a3d1
2 changed files with 25 additions and 24 deletions
|
|
@ -440,13 +440,13 @@ func upsertTree(tx *sql.Tx, tree *parse.Tree, context map[string]interface{}) (e
|
|||
return
|
||||
}
|
||||
|
||||
if err = deleteSpansByPathTx(tx, tree.Box, tree.Path); nil != err {
|
||||
if err = deleteSpansByRootID(tx, tree.ID); nil != err {
|
||||
return
|
||||
}
|
||||
if err = deleteAssetsByPathTx(tx, tree.Box, tree.Path); nil != err {
|
||||
if err = deleteAssetsByRootID(tx, tree.ID); nil != err {
|
||||
return
|
||||
}
|
||||
if err = deleteAttributesByPathTx(tx, tree.Box, tree.Path); nil != err {
|
||||
if err = deleteAttributesByRootID(tx, tree.ID); nil != err {
|
||||
return
|
||||
}
|
||||
if err = deleteRefsByPathTx(tx, tree.Box, tree.Path); nil != err {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue