You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by "Taymindis (via GitHub)" <gi...@apache.org> on 2024/10/30 00:14:17 UTC
[I] Namespace for cluster mode. [kvrocks]
Taymindis opened a new issue, #2628:
URL: https://github.com/apache/kvrocks/issues/2628
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/kvrocks/issues) and found no similar issues.
### Motivation
- Using Namespace in cluster mode to easily flush the keys .
### Solution
- As i knew namespace simply prepend the namespace prefix to the user key and remove it before retrieving. But it couldn't achieve with just simple key prefix.
What is we use the hashtag like below, if our namespace is `foo`, and key is 1234
{foo}:1234
### Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Allow to delete keys by the prefix [kvrocks]
Posted by "git-hulk (via GitHub)" <gi...@apache.org>.
git-hulk commented on issue #2628:
URL: https://github.com/apache/kvrocks/issues/2628#issuecomment-2447562875
> oh scan already supports key pattern, but kvrocks is faster than expected
@ShooterIT Yes, another fast path is to use `DeleteRange` for the deletion command.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Namespace for cluster mode. [kvrocks]
Posted by "git-hulk (via GitHub)" <gi...@apache.org>.
git-hulk commented on issue #2628:
URL: https://github.com/apache/kvrocks/issues/2628#issuecomment-2445657155
@Taymindis Delete keys with the specified prefix would be easy in Kvrocks, but Redis now doesn't have a command for this and we need to invent one if we would like to support this. What do you think? @apache/kvrocks-committers
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Allow to delete keys by the prefix [kvrocks]
Posted by "yaolele05 (via GitHub)" <gi...@apache.org>.
yaolele05 commented on issue #2628:
URL: https://github.com/apache/kvrocks/issues/2628#issuecomment-6191187729
Hi maintainers, I'd like to contribute to this issue.
I noticed that there were previous PRs related to this issue (#2819, #2828, and #2839). I'd like to understand the current preferred design before starting a new implementation.
Would you still welcome a contribution for deleting keys by prefix? If so, should the implementation use RocksDB's `DeleteRange`, or should it follow a scan-and-delete approach? I'd also appreciate guidance on the expected command syntax and namespace/cluster behavior.
Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Allow to delete keys by the prefix [kvrocks]
Posted by "PragmaTwice (via GitHub)" <gi...@apache.org>.
PragmaTwice commented on issue #2628:
URL: https://github.com/apache/kvrocks/issues/2628#issuecomment-2742972399
Several questions:
- It seems there's two PRs for this one task, so it's quite confusing. Are these two PRs competing with each other?
- I think first we should define the semantics and command syntax of it. It will affect the performance of this command.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Allow to delete keys by the prefix [kvrocks]
Posted by "baobaomaomeng (via GitHub)" <gi...@apache.org>.
baobaomaomeng commented on issue #2628:
URL: https://github.com/apache/kvrocks/issues/2628#issuecomment-2736032974
Does it need to have a limit on the number of matches, similar to prefix matching?And it‘s just imple for keyType?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Allow to delete keys by the prefix [kvrocks]
Posted by "ShooterIT (via GitHub)" <gi...@apache.org>.
ShooterIT commented on issue #2628:
URL: https://github.com/apache/kvrocks/issues/2628#issuecomment-2447536142
As all keys are sorted by lexicographic order in kvrocks, maybe we can think of a set of commands about key prefix operation, of course, deleting keys by the prefix.
oh `scan` already supports key pattern, but kvrocks is faster than expected
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org