fix task instance modal open performance issue (#10764)
fix task instance modal open performance issue (#10764)

This reduces the task instance modal open wait time for large DAGs with
extra links from minutes to 6 ms, an order of 10000 times speed up.
nathanielvarona/airflow,Acehaidrey/incubator-airflow,danielvdende/incubator-airflow,cfei18/incubator-airflow,apache/incubator-airflow,bolkedebruin/airflow,lyft/incubator-airflow,DinoCow/airflow,apache/airflow,lyft/incubator-airflow,sekikn/incubator-airflow,Acehaidrey/incubator-airflow,danielvdende/incubator-airflow,Acehaidrey/incubator-airflow,nathanielvarona/airflow,nathanielvarona/airflow,bolkedebruin/airflow,apache/airflow,danielvdende/incubator-airflow,dhuang/incubator-airflow,sekikn/incubator-airflow,danielvdende/incubator-airflow,DinoCow/airflow,airbnb/airflow,cfei18/incubator-airflow,lyft/incubator-airflow,mistercrunch/airflow,Acehaidrey/incubator-airflow,apache/incubator-airflow,nathanielvarona/airflow,danielvdende/incubator-airflow,DinoCow/airflow,mistercrunch/airflow,apache/airflow,dhuang/incubator-airflow,cfei18/incubator-airflow,mrkm4ntr/incubator-airflow,mrkm4ntr/incubator-airflow,mistercrunch/airflow,dhuang/incubator-airflow,DinoCow/airflow,bolkedebruin/airflow,nathanielvarona/airflow,apache/incubator-airflow,nathanielvarona/airflow,danielvdende/incubator-airflow,lyft/incubator-airflow,apache/airflow,apache/incubator-airflow,Acehaidrey/incubator-airflow,bolkedebruin/airflow,sekikn/incubator-airflow,airbnb/airflow,apache/airflow,cfei18/incubator-airflow,cfei18/incubator-airflow,airbnb/airflow,apache/airflow,sekikn/incubator-airflow,mistercrunch/airflow,mrkm4ntr/incubator-airflow,cfei18/incubator-airflow,dhuang/incubator-airflow,mrkm4ntr/incubator-airflow,Acehaidrey/incubator-airflow,bolkedebruin/airflow,airbnb/airflow