-
-
Notifications
You must be signed in to change notification settings - Fork 428
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
Slow delete_pattern() #609
Comments
Hey @jdbit sorry for replying late. Well the issue is that On the other hand Finally, probably P.S. I did not verify that, it is just my suspicion. |
Personally I would change |
Hey @WisdomPill, |
@WisdomPill I would be happy to try it and implement the suggested feature. There are some concerns when using |
@rootart you are right. There could be a safe way to use scan and a bigger iter_size but delete keys in one go and a more dangerous option using keys. Technically with a big enough iter_size it would get close to keys performance wise |
Hey @WisdomPill |
Hi, I have a problem with delete_pattern() function.
This code with cache.delete_pattern() is very-very slow:
But when I rewrite the code, it works blazing fast:
Why the delete_pattern() is so slow? Is it a bug or I'm doing something wrong?
The text was updated successfully, but these errors were encountered: