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

Delete chunked cache results on clear:results #387

Merged
merged 2 commits into from
Dec 12, 2024
Merged

Delete chunked cache results on clear:results #387

merged 2 commits into from
Dec 12, 2024

Conversation

avmey
Copy link
Contributor

@avmey avmey commented Dec 11, 2024

Closes #366

When the user ran clear:results and specified a report, i.e. depth, current behavior is to pull down all cached results with the service depth to delete. This works when cached results are small enough that they only require one cache table entry. When cached results are larger, the results are split over multiple entries in chunks and the service named becomes depth-chunk-0, depth-chunk-1, etc.

Now clear:results will select items from the cache table with an exact match (depth) AND chunked results (depth-chunk*)

@avmey avmey requested a review from twelch December 11, 2024 15:33
@twelch
Copy link
Contributor

twelch commented Dec 12, 2024

@avmey can you give a little info on what was happening and how this is the fix for it? Thanks!

@avmey
Copy link
Contributor Author

avmey commented Dec 12, 2024

@twelch Updated the original description. Let me know if you need any more description!

@twelch
Copy link
Contributor

twelch commented Dec 12, 2024

Looks good, thanks for the explanation and fix

@twelch twelch merged commit 58c2778 into dev Dec 12, 2024
2 checks passed
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.

clearResults command is not deleting all chunks for specific report
2 participants