Skip to content
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

搜索key的优化建议 #15

Open
sofire opened this issue Dec 30, 2022 · 0 comments
Open

搜索key的优化建议 #15

sofire opened this issue Dec 30, 2022 · 0 comments

Comments

@sofire
Copy link

sofire commented Dec 30, 2022

版本:1.0.6 Mac m1

搜索的key如果不带*,会很慢
搜索 xx*,scan参数会使用设定的值,比如 500条
SCAN 0 MATCH xx* COUNT 500
搜索 xx,会使用 db的条数,类似 keys,比如我的db有几百万条,则会很慢
scan 0 match xx 11111111

如果db没有key,搜索后会弹框提示,关闭弹框后,无法继续搜索,只能重连
当前环境不支持该命令
ERR syntax error
SCAN 0 MATCH xx COUNT 0

可能需要对 数量做一下判断,或者都用 设定的值

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant