mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 02:25:55 +01:00
Zincrybulk (#9975)
* feat: zincry bulk * feat: psql bulk incr placeholder * test: redis test fix * test: redis test
This commit is contained in:
committed by
GitHub
parent
d9c42c000c
commit
6ea3b51f12
@@ -498,6 +498,11 @@ RETURNING "score" s`,
|
||||
});
|
||||
};
|
||||
|
||||
module.sortedSetIncrByBulk = async function (data) {
|
||||
// TODO: perf single query?
|
||||
return await Promise.all(data.map(item => module.sortedSetIncrBy(item[0], item[1], item[2])));
|
||||
};
|
||||
|
||||
module.getSortedSetRangeByLex = async function (key, min, max, start, count) {
|
||||
return await sortedSetLex(key, min, max, 1, start, count);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user