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

This commit is contained in:
Daniel 2024-05-10 23:37:27 +08:00
parent 002173044f
commit 2ee4533304
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -1647,7 +1647,7 @@ func updateAttributeViewColRelation(operation *Operation) (err error) {
} }
av.UpsertAvBackRel(srcAv.ID, destAv.ID) av.UpsertAvBackRel(srcAv.ID, destAv.ID)
if operation.IsTwoWay { if operation.IsTwoWay && !isSameAv {
av.UpsertAvBackRel(destAv.ID, srcAv.ID) av.UpsertAvBackRel(destAv.ID, srcAv.ID)
} }
return return