phpredis 百万条数据集合运算。

WBOY
Release: 2016-06-06 20:40:12
Original
1643 people have browsed it

场景如下:
远程获取数据x条,写入redis的set中,x的值在0-1000万之间。
从本地数据库中获取y条,写入redis的set中,y的值在0-1000万之间。
我使用sDiffStore来计算交集。
问题:
当x和y的值均达到百万级别的时候,sdiffstore的计算结果返回的是false。在其他时候运算是正常的。
求解决方法,或者查找问题所在的办法。
谢谢。

回复内容:

场景如下:
远程获取数据x条,写入redis的set中,x的值在0-1000万之间。
从本地数据库中获取y条,写入redis的set中,y的值在0-1000万之间。
我使用sDiffStore来计算交集。
问题:
当x和y的值均达到百万级别的时候,sdiffstore的计算结果返回的是false。在其他时候运算是正常的。
求解决方法,或者查找问题所在的办法。
谢谢。

内存不够用?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!