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

flush/snapshot only certain key #298

Open
imranjavaid opened this issue Nov 9, 2023 · 1 comment
Open

flush/snapshot only certain key #298

imranjavaid opened this issue Nov 9, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@imranjavaid
Copy link

One nice to have feature would be to be able to flush or snapshot only a certain key.
We have a situation in a multithreaded application where threads may be writing to a container within a key which is going through a resize. If another thread is doing a flush at the same time, it would cause data corruption or a runtime error. It would be nice to have a key level flush so that we don't need global level locks on the manager.

@KIwabuchi
Copy link
Member

Thanks for the feedback!

Unfortunately, that would be very hard to implement because Metall does not know which memory regions are used to allocate the object associated with a given key.

Could you tell me a bit more information about how Metall is used in your program? I might be able to come up with something to optimize your program.

@KIwabuchi KIwabuchi added the enhancement New feature or request label Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants