mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
♻️ Improve database loading performance https://github.com/siyuan-note/siyuan/issues/12818
This commit is contained in:
parent
da64370496
commit
c42064ec0b
9 changed files with 77 additions and 79 deletions
|
|
@ -828,13 +828,13 @@ func buildBlockFromNode(n *ast.Node, tree *parse.Tree) (block *Block, attributes
|
|||
if !treenode.IsNodeOCRed(n) {
|
||||
util.PushNodeOCRQueue(n)
|
||||
}
|
||||
content = NodeStaticContent(n, nil, true, indexAssetPath, true, nil)
|
||||
content = NodeStaticContent(n, nil, true, indexAssetPath, true)
|
||||
|
||||
fc := treenode.FirstLeafBlock(n)
|
||||
if !treenode.IsNodeOCRed(fc) {
|
||||
util.PushNodeOCRQueue(fc)
|
||||
}
|
||||
fcontent = NodeStaticContent(fc, nil, true, false, true, nil)
|
||||
fcontent = NodeStaticContent(fc, nil, true, false, true)
|
||||
|
||||
parentID = n.Parent.ID
|
||||
if h := heading(n); nil != h { // 如果在标题块下方,则将标题块作为父节点
|
||||
|
|
@ -846,7 +846,7 @@ func buildBlockFromNode(n *ast.Node, tree *parse.Tree) (block *Block, attributes
|
|||
if !treenode.IsNodeOCRed(n) {
|
||||
util.PushNodeOCRQueue(n)
|
||||
}
|
||||
content = NodeStaticContent(n, nil, true, indexAssetPath, true, nil)
|
||||
content = NodeStaticContent(n, nil, true, indexAssetPath, true)
|
||||
|
||||
parentID = n.Parent.ID
|
||||
if h := heading(n); nil != h {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue