-
Notifications
You must be signed in to change notification settings - Fork 955
Adding KEYINFO command to find out keys that have large number of elements #1151
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
base: unstable
Are you sure you want to change the base?
Conversation
97e7b68 to
e19f7ee
Compare
6574313 to
deb21af
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## unstable #1151 +/- ##
============================================
+ Coverage 71.02% 71.07% +0.05%
============================================
Files 123 124 +1
Lines 66116 66245 +129
============================================
+ Hits 46956 47082 +126
- Misses 19160 19163 +3
🚀 New features to boost your workflow:
|
4949a98 to
47c89bd
Compare
53e94d4 to
0f13625
Compare
Signed-off-by: otheng03 <[email protected]>
Signed-off-by: otheng <[email protected]>
Signed-off-by: otheng <[email protected]>
|
I have not begun to review your codes, I just take a look the new command names: The MANY_ELEMENTS is a little bit weird, i am not sure if you are willing to attend Valkey meeting next Monday (Link here https://github.com/valkey-io/valkey/wiki/Weekly-meeting#weekly-meeting-schedule ) and introduce this PR background to Valkey maintainer? Thanks |
|
Hi, thank you for your message. |
|
In today meeting, tsc member discussed this PR and express 2 concerns:
Could you wrote down a specific example how this feature in used in production environment, (I know the valkey-cli --bigkeys is too expensive in real production) so that TSC member can understand your idea or join next Monday meeting, Thanks |
|
Thanks for the review.
|
|
| Could you wrote down a specific example how this feature in used in production environment, The use case I have in mind is to identify keys with a large number of elements easily and early—before they cause problems in the system. I realized that using this feature to retrieve big keys can block other commands if a key is extremely large, such as one that is 512MB in size. It might be better to change the default behavior to return only the beginning part of the key name, and provide an option to return the full key name if needed. |
|
This is a specific usecase I have in mind.
|
|
Hi, @hwware. |
I add your PR in our meeting agenda (https://github.com/valkey-io/valkey/wiki/Weekly-meeting#core-team-sync-2025-05-19-1400-utc), you should have chance to discuss your requirement with TSC member in the meeting. |
|
| I add your PR in our meeting agenda (https://github.com/valkey-io/valkey/wiki/Weekly-meeting#core-team-sync-2025-05-19-1400-utc), you should have chance to discuss your requirement with TSC member in the meeting. Thanks for adding this PR to the agend. |
|
Thanks for investigating this implementation. We discussed it in our weekly meeting, and have some open questions.
|

ISSUE LINK: #1827
keyinfo-num-elements-larger-thankeyinfo-large-num-elements-max-lenKEYINFO GET <count> MANY_ELEMENTSKEYINFO LEN MANY_ELEMENTSKEYINFO RESET MANY_ELEMENTS