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

Collections: When removing keys, return which keys are actually removed #2760

Open
josephjclark opened this issue Dec 6, 2024 · 0 comments

Comments

@josephjclark
Copy link
Contributor

I know this is difficult to implement - but it would super useful, on delete, to know which keys were removed.

This could be controlled by a flag if there are performance concerns. Maybe sometimes we're happy to risk a big performance hit in exchange for knowing what will actually happen.

One approach would be to query all keys matching a pattern before the delete, then return that list. So it sort of predicts what it'll delete. I don't know how robust this is.

@github-project-automation github-project-automation bot moved this to New Issues in v2 Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New Issues
Development

No branches or pull requests

1 participant