mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-22 03:34:14 +00:00
admin: use {$ne:null} instead of {$exists:true} for listing contributors
in admin. Who knew $exists had such poor performance! https://groups.google.com/forum/#!topic/mongodb-user/FKJWoi3lb9I @sabrecat @wc8, admin page should be snappier now
This commit is contained in:
parent
6c6f364499
commit
eda79a73df
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ api.getMember = function(req, res) {
|
|||
}
|
||||
|
||||
api.listMembers = function(req, res) {
|
||||
User.find({'contributor.level':{$exists:true}})
|
||||
User.find({'contributor.level':{$ne:null}})// {$exists:true} causes terrible performance http://goo.gl/GCxzC9
|
||||
.select('contributor balance profile.name')
|
||||
.sort('contributor.text')
|
||||
.exec(function(err, users){
|
||||
|
|
|
|||
Loading…
Reference in a new issue