Skip to content

Conversation

@ravenac95
Copy link
Member

This is a feature that the OSO team has discovered is something we very much need. We might change where this caching takes place in the future if no external party wants to use this feature.

For context, we have a very large SQLMesh project that actually has some models generated through "model factories". The project ends up generating something like 800 models and loading that on a fairly quick machine (AMD Ryzen 9 class + 64GB) ends up taking about 40 seconds. We also need to do some work on our side to likely cache the model generation (to speed up sqlmesh load times in general) but this ended up being an easier touch point. This caching enabled the load time to go from 40 seconds to 5 milliseconds.

This introduces a cache when translating sqlmesh context to assets
@ravenac95
Copy link
Member Author

The latest change actually removes most of the caching from here as it's something that is mostly for opensource-observer specifically. Instead, we now make it easier to cache parts of this by adding new methods to the translator and breaking apart the dagster asset factory.

@ravenac95
Copy link
Member Author

We should review this post-hoc, sadly I need this before we can review another issue on oso.

@ravenac95 ravenac95 added this pull request to the merge queue Aug 8, 2025
Merged via the queue into main with commit fa52373 Aug 8, 2025
2 checks passed
@ravenac95 ravenac95 deleted the ravenac95/introduce-dagster-sqlmesh-cache branch August 8, 2025 06:00
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.

2 participants