-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change: Optimize permission subqueries in acl_where_owned_user
The clauses checking if a permission for a given resource exists no longer contain the resource id. Instead the id is looked up outside the subquery in all permissions for the given type and user gathered by the subquery. This improves performance for resource types with many items like results by allowing PostgreSQL to execute the subquery only once and reuse it instead of having to run a subquery for every resource in the database.
- Loading branch information
1 parent
99d9958
commit 28054e8
Showing
1 changed file
with
11 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters