Force projects api to use projects cte
What does this MR do and why?
Forces to fetch project authorizations first and then scan corresponding projects based on authorizations.
- generated query and explain analyze plan with cte: https://explain.depesz.com/s/ctYP
- previous query and explain ONLY plan: https://explain.depesz.com/s/75bM analyze took way too long to execute.
Screenshots or screen recordings
These are strongly recommended to assist reviewers and reduce the time to merge your change.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Alexandru Croitor