mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 20:49:01 +01:00
fix(collapse-subtree): improve performance of collapsing subtrees from O(n) to O(v) (#6971)
This commit is contained in:
commit
7588026640
@ -163,6 +163,7 @@ function setExpandedForSubtree(req: Request) {
|
||||
SELECT branches.branchId, branches.noteId FROM branches
|
||||
JOIN tree ON branches.parentNoteId = tree.noteId
|
||||
WHERE branches.isDeleted = 0
|
||||
AND branches.isExpanded = 1
|
||||
)
|
||||
SELECT branchId FROM tree`,
|
||||
[branchId]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user