Skip to content

Perf: add opt-in project-index loading for lint#5913

Draft
fresioAS wants to merge 1 commit into
SQLMesh:mainfrom
fresioAS:lint-scope-schema-resolution
Draft

Perf: add opt-in project-index loading for lint#5913
fresioAS wants to merge 1 commit into
SQLMesh:mainfrom
fresioAS:lint-scope-schema-resolution

Conversation

@fresioAS

Copy link
Copy Markdown
Contributor

Description

Add --use-project-index to targeted and full lint. The default path preserves the existing full context load. With both --use-project-index and --model, SQLMesh uses a persistent model-to-file dependency index to load, resolve, and validate only the selected models and their transitive upstream dependencies.

A full indexed lint still loads and lints every model, but creates or refreshes the index for later targeted commands. Missing or expanded dependencies safely retry with a full indexed load.

To mitigate long lint runs - #5907

Test Plan

Checklist

  • I have run make style and fixed any issues
  • I have added tests for my changes (if applicable)
  • All existing tests pass (make fast-test)
  • My commits are signed off (git commit -s) per the DCO

Add --use-project-index to targeted and full lint. The default path preserves the existing full context load. With both --use-project-index and --model, SQLMesh uses a persistent model-to-file dependency index to load, resolve, and validate only the selected models and their transitive upstream dependencies.

A full indexed lint still loads and lints every model, but creates or refreshes the index for later targeted commands. Missing or expanded dependencies safely retry with a full indexed load.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Andreas Fredhøi <andreas.fredhoi@fresio.no>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant