Skip to content

Conversation

@dstandish
Copy link
Contributor

Cherry pick Grid view optimization (#51805)

@boring-cyborg boring-cyborg bot added area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers. labels Jul 2, 2025
@dstandish dstandish force-pushed the cherry-pick-grid-optimization branch from c42a629 to 7833b41 Compare July 2, 2025 15:31
@kaxil kaxil force-pushed the cherry-pick-grid-optimization branch from 7833b41 to 291e279 Compare July 2, 2025 17:10
@kaxil
Copy link
Member

kaxil commented Jul 2, 2025

Rebased on latest v3-0-test changes to fix the unrelated failures we saw

The headline here is, with 6k tasks in a dag, loading time for 10 runs drops from 1.5m to < 10s in a quick local test. I split it into smaller more purpose-specific requests that each do less. So we have one request for just the structure, and another one for TI states (per dag run). I also find ways to stop refreshing when there's no active dag run (or the particular dag run is not active and its tis don't need refreshing. I also changed the "latest dag run" query (which checks for a new run triggered externally to be simpler dedicated endpoint. It runs every couple seconds even when there is nothing going on and now it takes 10ms instead of 300ms. (cherry picked from commit eaa8ca0) --------- Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>
@kaxil kaxil force-pushed the cherry-pick-grid-optimization branch from 291e279 to 1cbb29f Compare July 2, 2025 17:13
@kaxil kaxil merged commit 9cf9c7c into apache:v3-0-test Jul 2, 2025
70 checks passed
@kaxil kaxil deleted the cherry-pick-grid-optimization branch July 2, 2025 18:02
@ms32035 ms32035 mentioned this pull request Jul 3, 2025
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers.

2 participants