Replies: 1 comment
-
I moved the ticket into discussions. Generally, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I asked this question on StackOverflow back in April but haven't received any responses. Was hoping perhaps someone here may be able to assist...
https://stackoverflow.com/questions/67003553/lettuce-find-keys-slow-keyscancursor
I have been using the below code with Lettuce/Redis for a while now but as our key store grows I have noticed a significant slow down in finding keys based on a match pattern.
ScanArgs scanArgs = ScanArgs.Builder.limit(50).match("test*");
RedisAdvancedClusterCommands<byte[], byte[]> commands = getPoolConnection().sync();
KeyScanCursor<byte[]> cursor = commands.scan(scanArgs);
If I increase the limit from say 50 to 5000 the performance is better. However, I am just wondering if that is the correct thing to do or if there is just a more performant implementation I could be using to find keys based on a pattern?
Beta Was this translation helpful? Give feedback.
All reactions