We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
目前RedisList.Contains的实现是GetAll到本地内存,然后做内存判断是否存在。 数据量小(小于100个元素)的时候还好,数据多了性能会很差。
优化方案如下: 1,针对Redis7,使用新命令
2,针对Redis7以下,用LRANGE分批读取,逐个判断是否存在。批大小默认100。这样子可以避免GetAll返回所有数据。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
目前RedisList.Contains的实现是GetAll到本地内存,然后做内存判断是否存在。
数据量小(小于100个元素)的时候还好,数据多了性能会很差。
优化方案如下:
1,针对Redis7,使用新命令
2,针对Redis7以下,用LRANGE分批读取,逐个判断是否存在。批大小默认100。这样子可以避免GetAll返回所有数据。
The text was updated successfully, but these errors were encountered: