You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Kaxil Naik (JIRA)" <ji...@apache.org> on 2019/01/19 16:02:00 UTC

[jira] [Updated] (AIRFLOW-2776) Tree view JSON is unnecessarily large

     [ https://issues.apache.org/jira/browse/AIRFLOW-2776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kaxil Naik updated AIRFLOW-2776:
--------------------------------
    Fix Version/s:     (was: 2.0.0)
                   1.10.2

> Tree view JSON is unnecessarily large
> -------------------------------------
>
>                 Key: AIRFLOW-2776
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2776
>             Project: Apache Airflow
>          Issue Type: Improvement
>            Reporter: Abdul Nimeri
>            Assignee: Abdul Nimeri
>            Priority: Minor
>             Fix For: 1.10.2
>
>
> The tree view generates JSON that can be massive for bigger DAGs –– some of our tree views at stripe have 10s of MBs of JSON.
> The [generated JSON is prettified|https://github.com/apache/incubator-airflow/blob/52c745da71a6da798f7322956967b5e818b56e48/airflow/www/views.py#L1480], which both takes up more CPU time during serialization, as well as slowing everything else that uses it. We patched this on stripe's fork by removing all whitespace and had a ton of speedup for bigger tree views. Considering the JSON is only meant to be used programmatically, this is probably an easy win.



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