mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	speed up category purge
using eachLimit dont emit stats on every topic delete
This commit is contained in:
		| @@ -133,6 +133,12 @@ module.exports = function(Posts) { | ||||
| 					async.each(results.downvoters, function(uid, next) { | ||||
| 						db.sortedSetRemove('uid:' + uid + ':downvote', pid, next); | ||||
| 					}, next); | ||||
| 				}, | ||||
| 				function(next) { | ||||
| 					db.delete('pid:' + pid + ':upvote', next); | ||||
| 				}, | ||||
| 				function(next) { | ||||
| 					db.delete('pid:' + pid + ':downvote', next); | ||||
| 				} | ||||
| 			], callback); | ||||
| 		}); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user