-
-
Notifications
You must be signed in to change notification settings - Fork 670
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
Limit the max number of keys when scanning #206
Limit the max number of keys when scanning #206
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make it scanmax
and add it here as well? https://github.com/erikdubbelboer/phpRedisAdmin/blob/master/includes/config.sample.inc.php#L35
Sure. I added a line of comment. |
I have tested this and found that even if the redis db contains millions of keys, a query with |
Thanks! |
Wait, does this mean that the display will be incomplete, and that there is no mention about it anywhere to the user? There is also no way to "load more"? I agree with a need to limit issues when servers have a huge number of keys, but this solution is really problematic. |
In AnotherRedisDesktopManager, if the number of keys exceeds 500, it displays the "load more" button. An alternative is to display a warning at the bottom of sidebar: "reached the limit" |
Kind of better, but not sure it would be clear enough for users. I think some "keys limit reached" message should be clear, or a "more" button would make it more clear. |
Adding "load more" button is definitely better, but this project currently lacks contributors. |
Hi, glad to see you're still maintaining this 12 year old project!
Among the redis web GUI tools, phpRedisAdmin is still the most powerful one.
But now there is a serious problem: if the redis db contains more than 100,000 keys, it takes phpRedisAdmin tens of seconds to open the db, or even timeout.
I have a simple solution: limit the max number of keys when scanning.
For reference, AnotherRedisDesktopManager also has this limitation, and the max number is 500.
https://github.com/qishibo/AnotherRedisDesktopManager/blob/d373d653063c2a0c256c743777118b92231010ba/src/components/contents/KeyContentStream.vue#L199