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

Selective query unloading (selective wipe) #166

Open
bergmanngabor opened this issue Apr 18, 2024 · 1 comment
Open

Selective query unloading (selective wipe) #166

bergmanngabor opened this issue Apr 18, 2024 · 1 comment
Labels
enhancement New feature or request Query Issues related to the query component of VIATRA, including runtime or pattern language issues.

Comments

@bergmanngabor
Copy link
Contributor

Allow for a subset of patterns to be wiped from the Rete network to save some memory, but not lose all the work.

For instance, I may want to discard the matcher of the constraint pattern of a validation rule, plus helper patterns used in its definition, once I have obtained and processed its result; but I would like to keep the results any patterns from a collection of libraries that were initialized on demand when constructing these matchers, so that they can be reused when I evaluate the next validation rule.

Discrimination of patterns could happen arbitrarily, e.g. on the basis of their defining package.

@bergmanngabor bergmanngabor added enhancement New feature or request Query Issues related to the query component of VIATRA, including runtime or pattern language issues. labels Apr 18, 2024
@bergmanngabor
Copy link
Contributor Author

Ideally, we we would manage to guarantee that:

  • end-users holding Matcher references, and
  • hybrid LS holding query result providers

can hold onto their references, unaware that a partial wipe happened.
When re-requesting results though these handles, the appropriate parts of Rete could be reconstructed on demand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Query Issues related to the query component of VIATRA, including runtime or pattern language issues.
Projects
None yet
Development

No branches or pull requests

1 participant