️(backend) improve trashbin endpoint performance (#1495)

The trashbin endpoint is slow. To filter documents the user has owner
access, we use a subquery to compute the roles and then filter on this
subquery. This is very slow. To improve it, we use the same way to
filter children used in the tree endpoint. First we look for all highest
ancestors the user has access on with the owner role. Then we create one
queryset filtering on all the docs starting by the given path and are
deleted.
This commit is contained in:
Manuel Raynaud
2025-10-16 17:06:47 +02:00
committed by GitHub
parent e2298a3658
commit 5908afb098
3 changed files with 26 additions and 5 deletions

View File

@@ -12,6 +12,10 @@ and this project adheres to
- ♿ add missing aria-label to add sub-doc button for accessib… #1480
- ♿ add missing aria-label to more options button on sub-docs #1481
### Fixed
- ⚡️(backend) improve trashbin endpoint performance
## [3.8.0] - 2025-10-14
### Added