tirkarthi opened a new pull request, #59758:
URL: https://github.com/apache/airflow/pull/59758

   On the initial load `previousDagRunIdRef.current` is "" and compared against 
`latestDagRunId` to clear cache causing the http requests to be initiated 
again. Initially when previousDagRunIdRef.current is empty set it to 
latestDagRunId and check only when there is a new run in the next loop. 
Duplicate requests like "/ui/grid/runs", "/ui/grid/structure" etc. are not made 
with this check reducing the overall load on the webserver on page load.
   
   In main loading a dag page with one run and no pending run
   
   /ui - 11 requests
   /api - 16 requests
   
   After PR
   
   /ui - 9 requests
   /api - 11 requests
   
   Closes #59757 


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to