mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-06 15:48:43 +02:00
convert uid mappings to sorted sets
email:uid, username:uid, userslug:uid, fullname:uid all converted to sorted sets prevents hitting mongodb document size limit
This commit is contained in:
@@ -32,7 +32,7 @@ module.exports = function(User) {
|
||||
|
||||
async.waterfall([
|
||||
function(next) {
|
||||
db.getObjectValues('username:uid', next);
|
||||
db.getSortedSetRange('username:uid', 0, -1, next);
|
||||
},
|
||||
function(uids, next) {
|
||||
User.getMultipleUserFields(uids, ['uid', 'email', 'username'], next);
|
||||
|
||||
Reference in New Issue
Block a user