Gerrit-K opened a new issue, #37026:
URL: https://github.com/apache/airflow/issues/37026

   ### Apache Airflow version
   
   Other Airflow 2 version (please specify below)
   
   ### If "Other Airflow 2 version" selected, which one?
   
   2.8.0
   
   ### What happened?
   
   When accessing the "Add Dag Run" dialog (`<airflow-URL>/dagrun/add`, see 
screenshot below) we're facing bad UI performance (>5s response time). Upon 
further inspection, we realized that there were two select fields in the 
response that were pre-populated with _a lot_ of options: Task Instances and 
Creating Job. Both of them contain around 20k values in our case, which (1) 
heavily increases the response time and (2) makes the select box almost 
unusable in the browser once the page eventually renders.
   
   
![image](https://github.com/apache/airflow/assets/8766565/cb0b9ef7-085d-4058-8ec8-c7a9e6bba544)
   
   ### What you think should happen instead?
   
   _No response_
   
   ### How to reproduce
   
   Create a larger number of tasks (e.g. by running a long backfill of a 
multi-task DAG). Then access the mentioned view.
   
   ### Operating System
   
   debian 12 (bookworm)
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   Official helm chart with official airflow image (2.8.0)
   
   ### Anything else?
   
   Although 20k+ task instances sounds like a lot, I think this can easily 
happen for a production environment. However, I'm just starting to dive into 
Airflow, so if it is indeed wrong to have that many task instances (e.g. if 
they should be cleaned up) please let me know.
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to