Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Significant Compilation Time Increase with Growing Number of Model Files - Incremental Compilation Possible? #8318

Open
w1992wishes opened this issue Jun 3, 2024 · 2 comments
Labels
question The issue is a question. Please use Stack Overflow for questions.

Comments

@w1992wishes
Copy link

As the number of model files under the schema increases, the compilation time significantly increases, leading to a long response time for the first request after each model file compilation. Are there any optimization strategies for this issue? Currently, it appears to be a full compilation every time. Is incremental compilation possible?

@w1992wishes w1992wishes added the question The issue is a question. Please use Stack Overflow for questions. label Jun 3, 2024
@ifokeev
Copy link

ifokeev commented Jun 3, 2024

Hi @w1992wishes! It's because cube stack container is not optimized for schema caching, you need to define schemaVersion somehow in you config similar to https://github.com/mlcraft-io/mlcraft/blob/main/services/cubejs/index.js#L43

@w1992wishes
Copy link
Author

Hi @w1992wishes! It's because cube stack container is not optimized for schema caching, you need to define schemaVersion somehow in you config similar to https://github.com/mlcraft-io/mlcraft/blob/main/services/cubejs/index.js#L43

Thanks, I have already defined schemaVersion. However, there are some scenarios where I indeed need to update the schema, and in those cases, it significantly impacts the existing queries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question The issue is a question. Please use Stack Overflow for questions.
Projects
None yet
Development

No branches or pull requests

2 participants