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

AGE for PG12 #1

Merged
merged 2 commits into from
Jun 8, 2022
Merged

Conversation

muhammadshoaib
Copy link
Owner

No description provided.

This fix allows locally cached contexts to be rebuilt for actions that
update the specified underlying graph.

Local contexts are tied to their VLE grammar node IDs, which is unique to
each command. This ID allows the caching of contexts, which allows their
reuse, thus saving the expensive costs of rebuilding a new local context
every time, for the same command. Its expected use was within a single
command line. This is because the VLE SRF may get invoked many times
through the single grammar node's lifetime on that line.

However, it was overlooked in static procedures (stored procedures and
user created functions) that these grammar nodes might persist longer
than the expected life of just one command line.

This fix allows them to persist and update along with the graph.

Added regression tests.
Fixed the VLE local cache. It had a bug that caused a circular loop
in the LRU cache list. This loop would then cause a crash when the
cache attempted to purge off old entries.

No impact on regression tests.
@muhammadshoaib muhammadshoaib merged commit d5cd568 into muhammadshoaib:ALPHA_12_1.0.0 Jun 8, 2022
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