Would importing inside/outside a flow would have an effect on performance?
✅ 1
z
Zanie
03/10/2023, 2:37 PM
Not really in a meaningful way.
👍 1
a
Austin Weisgrau
03/10/2023, 5:30 PM
I think that's a bigger concern in Airflow where that advice is coming from. Airflow keeps orchestration and execution in the same level, and constructs all its "flows" at import time to have them ready for orchestration, and refreshes that every 30 seconds, so having that be as fast as possible is important. Prefect flows are only imported in the execution layer, so there's not a meaningful difference between import time and runtime in prefect
y
Yaron Levi
03/10/2023, 6:02 PM
@Austin Weisgrau Thank you for the detailed explanation!
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.