Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:zap: Optimize rendering performance of databases containing relation fields https://github.com/siyuan-note/siyuan/issues/11249

Daniel2ee4533304ef
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index 7ac2980175..94a803f763 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -1647,7 +1647,7 @@ func updateAttributeViewColRelation(operation *Operation) (err error) {
}
av.UpsertAvBackRel(srcAv.ID, destAv.ID)
- if operation.IsTwoWay {
+ if operation.IsTwoWay && !isSameAv {
av.UpsertAvBackRel(destAv.ID, srcAv.ID)
}
return