An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:zap: Optimize rendering performance of databases containing relation fields https://github.com/siyuan-note/siyuan/issues/11249
Daniel002173044fce
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.goindex cb93b8d6e9..7ac2980175 100644--- a/kernel/model/attribute_view.go+++ b/kernel/model/attribute_view.go@@ -1019,14 +1019,6 @@ func renderAttributeViewTable(attrView *av.AttributeView, view *av.View, query s}rows[val.BlockID] = values}-- // 数据订正,补全关联- if av.KeyTypeRelation == keyValues.Key.Type && nil != keyValues.Key.Relation {- av.UpsertAvBackRel(attrView.ID, keyValues.Key.Relation.AvID)- if keyValues.Key.Relation.IsTwoWay {- av.UpsertAvBackRel(keyValues.Key.Relation.AvID, attrView.ID)- }- }}// 过滤掉不存在的行@@ -1655,6 +1647,9 @@ func updateAttributeViewColRelation(operation *Operation) (err error) {}av.UpsertAvBackRel(srcAv.ID, destAv.ID)+ if operation.IsTwoWay {+ av.UpsertAvBackRel(destAv.ID, srcAv.ID)+ }return}