84669 personnes étudient
152542 personnes étudient
20005 personnes étudient
5487 personnes étudient
7821 personnes étudient
359900 personnes étudient
3350 personnes étudient
180660 personnes étudient
48569 personnes étudient
18603 personnes étudient
40936 personnes étudient
1549 personnes étudient
1183 personnes étudient
32909 personnes étudient
需求:我的redis里有一个哈希表(300万左右的数据量),现在我要用这个哈希表的key做遍历,想要把所有的key都导入一个list中。但是,每次倒的时候,都会发生库的拥堵(几分钟)。
想问问有没有什么好的方法。
不用hscan的原因:
哈希表本身在不断增加,hscan不好判断什么时候完成一遍。
可能还有别的我不知道的原因。
300w键值对 按键值都为8字节大概有48MB左右。一次HGETALL, redis io压力不小。
300w键值对 按键值都为8字节大概有48MB左右。一次HGETALL, redis io压力不小。