jedcunningham opened a new pull request #14993: URL: https://github.com/apache/airflow/pull/14993
This fixes a short circuit in `create_dag_specific_permissions` to avoid needlessly querying permissions for every single DAG, and changes `get_all_permissions` to run 1 query instead of many. With ~5k DAGs, these changes speed up `create_dag_specific_permissions` by more than 65 seconds each call (on my machine), and since that method is called twice before the webserver actually responds to requests, this effectively speeds up the webserver startup by over 2 minutes. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
