faster getTeasers

got rid of getPostIndices
This commit is contained in:
barisusakli
2014-10-03 13:43:51 -04:00
parent 43806e5921
commit 73d358edc5
2 changed files with 24 additions and 21 deletions

View File

@@ -203,7 +203,7 @@ module.exports = function(db, module) {
module.sortedSetCard = function(key, callback) {
if (!key) {
return callback();
return callback(null, 0);
}
db.collection('objects').count({_key: key}, function(err, count) {
count = parseInt(count, 10);