mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve database performance https://github.com/siyuan-note/siyuan/issues/15764
This commit is contained in:
parent
cd8c3a41e6
commit
2b85cb1b6c
4 changed files with 21 additions and 10 deletions
|
|
@ -22,8 +22,13 @@ import (
|
|||
"github.com/siyuan-note/siyuan/kernel/util"
|
||||
)
|
||||
|
||||
func RenderAttributeViewTable(attrView *av.AttributeView, view *av.View, query string,
|
||||
depth *int, cachedAttrViews map[string]*av.AttributeView) (ret *av.Table) {
|
||||
func RenderAttributeViewTable(attrView *av.AttributeView, view *av.View, query string, depth *int, cachedAttrViews map[string]*av.AttributeView) (ret *av.Table) {
|
||||
viewable := attrView.RenderedViewables[view.ID]
|
||||
if nil != viewable {
|
||||
ret = viewable.(*av.Table)
|
||||
return
|
||||
}
|
||||
|
||||
ret = &av.Table{
|
||||
BaseInstance: av.NewViewBaseInstance(view),
|
||||
Columns: []*av.TableColumn{},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue