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

Precompute local project bundle for server evaluation, reuse queries #1242

Open
charlieegan3 opened this issue Nov 6, 2024 · 0 comments
Open

Comments

@charlieegan3
Copy link
Member

In #1230, we added support for the reuse of a prepared query when linting for rego and aggregate rules. It'd be nice to be able to bring similar gains to the server's Eval Code Lens function too.

Currently, the current project must be parsed and compiled before being evaluated, there are two parts to this.

  • reloading the new bundle ready for evaluation in the background
  • Updating the logic to use the same prepared query for many evaluation runs. Perhaps evaluating the whole bundle, but then selecting only the rule in question after evaluation.

Considerations, can we have a prepared query that evaluates the rule based on the input rather than evaluating more than we need to? (/sending http.send calls etc.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant