Skip to content

Inform the user about the explosion in the number of data intervals #5286

@MarcusRisanger

Description

@MarcusRisanger

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.

Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ImprovementImproves existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions