Improve performance for rendering databases, due flashcards

This commit is contained in:
Daniel 2024-06-23 21:37:28 +08:00
parent 65f24b376e
commit 06f3721fd4
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
6 changed files with 36 additions and 7 deletions

View file

@ -199,7 +199,7 @@ func GetAttributeViewPrimaryKeyValues(avID, keyword string, page, pageSize int)
switch view.LayoutType {
case av.LayoutTypeTable:
if !kv.IsDetached {
if nil == treenode.GetBlockTree(kv.BlockID) {
if !treenode.ExistBlockTree(kv.BlockID) {
break
}
}