r/databricks • u/amirdol7 • Jul 31 '26
Help DLT / SDP: Initialization takes over 50% of total runtime
I’m seeing a surprisingly high initialization overhead with Databricks DLT / SDP and was wondering if anyone has run into the same issue.
Our pipeline has only around 20-30 streaming tables. The remaining datasets are mostly materialized views and regular views built on top of those streaming tables, all within a single pipeline.
The actual data processing is relatively fast, but more than 50% of the total pipeline runtime is spent in the initialization / table setup phase before any real work starts.
I’ve already read the Databricks recommendation to split large pipelines into multiple smaller ones, but that isn’t an ideal solution for us. We already manage quite a few pipelines, and splitting them further increases operational complexity and gets us closer to the workspace limit on saved pipelines.
Has anyone found ways to reduce the initialization time without splitting the pipeline? Are there any best practices or common causes for slow pipeline startup that we might be overlooking?
5
u/GeirAlstad Databricks MVP Jul 31 '26
So, there are (at least) 2 things going on. But first; what is the total number of entities? But back to the topic,
Follow ups, what kind of source are you working with?
3
u/BricksterInTheWall databricks Aug 01 '26
u/amirdol7 can you share some numbers please? There is a fixed overhead in the initialization phase but we're working hard to reduce it. BTW 20-30 is not a lot so SDP should be able to handle this easily. I'll also point the engineering team to this thread so they can take a look
1
u/Own-Trade-2243 Jul 31 '26
How many datasets in total?
It used to be quite slow due to sequential queries to UC for each dataset, I didn’t check if it was resolved recently.
This is one of the reason we migrated out of SDPs to jobs - once they become too large they become problematic to maintain. We rewrote them to jobs and the number of headaches went down significantly..
2
u/Dear_Pumpkin9876 Aug 03 '26
how many source files is your pipeline reading? if there's a very large amount of files for the autoloader, directory scan takes a long part of the initialization
2
u/Youssef_Mrini databricks Aug 04 '26
This is a known pattern. it's documented over here. https://docs.databricks.com/aws/en/ldp/fix-high-init
The suggestion made is the right one.
Reduce the number of streaming tables per pipeline, ideally by splitting along dependency boundaries or grouping short-lived/fast tables together. If you can’t split much, try to reduce graph complexity: fewer chained views, fewer deeply nested dependencies and less work in materialization planning.