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

Remove data from the stored sqlCache statement closure #2028

Conversation

paulrutter
Copy link
Contributor

@paulrutter paulrutter commented Jan 8, 2025

Remove the data property from the sql cache after executing the query, as it's pointless for re-using from cache.
It just retains table data which could otherwise be garbage collected sooner.
Fixes #2027.

Thank you for the time you are putting into AlaSQL!

…mory leak AlaSQL#2027

- Remove the `data` property from the sql cache after executing the query
@paulrutter paulrutter changed the title #2027 sqlCache retains data (and other properties), possible memory l… sqlCache retains data (and other properties), possible memory leak Jan 8, 2025
@paulrutter paulrutter changed the title sqlCache retains data (and other properties), possible memory leak Remove data from the stored sqlCache statement closure Jan 8, 2025
@mathiasrw mathiasrw merged commit a4c1a42 into AlaSQL:develop Jan 11, 2025
11 checks passed
@mathiasrw
Copy link
Member

Fix released as part of v4.2.6

@paulrutter paulrutter deleted the maintenance/2027-clear-table-data-from-cache branch January 11, 2025 07:44
@paulrutter
Copy link
Contributor Author

@mathiasrw thanks for merging!

Btw, we just released a feature to our product using AlaSQL, see https://support.blueconic.com/en/articles/254081-q1-2025-blueconic-release-notes.

A nice showcase of the power of AlaSQL.

@mathiasrw
Copy link
Member

This is great. It makes me very happy to see things like this!

And what a grat use case for AlaSQL: timeline rollup specified by the user.

@paulrutter
Copy link
Contributor Author

That's why i have been working on the parser, as we use it for several things in the product.
Extracting certain date constructs, but also to give user feedback upon writing a query.

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.

sqlCache retains data (and other properties), possible memory leak
2 participants