I am currently struggling to understand why my project with 80 models is taking a long time (>10 minutes) and consumes a lot of resources (resource monitor lists RAM at ~14gb idle which rockets up to my 32gb limit) in the BackfillStage of planning. I use an OK spec 2023 Windows laptop for this.
This example is from running sqlmesh plan after sqlmesh destroy - so it's a worst case. However, evaluating sqlmesh plan dev after making a certain amount of changes can also cause the planning stage to take a very long time.
Since the planning stage emits no logs, it's hard to understand what happens, and why this happens. E.g. as of now I can't really say which models are taking a long time to process in the planning stage, which keeps me from knowing where to start evaluating my models.
I suspect this is due to model lineage being complicated, models being used in several downstream models, and so on - but with the current logging during plan evaluation, I don't really know.
I am currently struggling to understand why my project with 80 models is taking a long time (>10 minutes) and consumes a lot of resources (resource monitor lists RAM at ~14gb idle which rockets up to my 32gb limit) in the
BackfillStageof planning. I use an OK spec 2023 Windows laptop for this.This example is from running
sqlmesh planaftersqlmesh destroy- so it's a worst case. However, evaluatingsqlmesh plan devafter making a certain amount of changes can also cause the planning stage to take a very long time.Since the planning stage emits no logs, it's hard to understand what happens, and why this happens. E.g. as of now I can't really say which models are taking a long time to process in the planning stage, which keeps me from knowing where to start evaluating my models.
I suspect this is due to model lineage being complicated, models being used in several downstream models, and so on - but with the current logging during plan evaluation, I don't really know.