[ 
https://issues.apache.org/jira/browse/AIRFLOW-2529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16492898#comment-16492898
 ] 

Stefan Seelmann commented on AIRFLOW-2529:
------------------------------------------

Thanks [~TaoFeng] for the pointer, really helpful.

I think it makes sense to add the "Base date" and "Number of runs" widgets 
which are used on the other views to the graph view too. This way the number of 
dag runs in the dropdown is limited. But still it's possible to browse through 
all the dag runs.

I created an initial draft: 
[https://github.com/seelmann/incubator-airflow/tree/AIRFLOW-2529-graph-view-dag-runs]

I have to add the same functionality to the RBAC interface and have to look if 
I can write some tests. But feedback is already welcomed.

I also attached a screenshot:

!Screenshot_2018-05-28_21-32-38.png!

> Graph View DAG Run dropdown
> ---------------------------
>
>                 Key: AIRFLOW-2529
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2529
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: webapp
>    Affects Versions: 1.9.0
>            Reporter: Stefan Seelmann
>            Priority: Major
>         Attachments: Screenshot_2018-05-28_21-32-38.png
>
>
> The "Graph View" has a dropdown which contains all DAG run IDs. If there are 
> many (thousands) of DAG runs the page gets barely usable. It takes multiple 
> seconds to load the page because all DAG runs must be fetched from DB, are 
> processed, and a long option list is rendered in the browser. It is also not 
> very useful because in such a long list it is hard to find a particular DAG 
> run.
> A simple fix to address the load time would be to just limit the number of 
> shown DAG runs. For example only the latest N are shown, N could be 
> "page_size" from airflow.cfg which is also used in other views. If the DAG 
> run that should be shown (via query parameters execution_date or run_id) is 
> not included in the N lastest list it can still be added by a 2nd SQL query.
> A more complex change to improve usability would require a different way to 
> select a DAG run. For example a popup to search for DAG runs with pagination 
> etc. But such functionality already exits in the /dagrun UI.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to