Make titivate command run faster

This commit is contained in:
Thibault Duplessis 2012-04-21 12:04:30 +02:00
parent 8d9a0d9ceb
commit 24d28fbfea

View file

@ -13,7 +13,7 @@ final class GameCleanNext(gameRepo: GameRepo) {
val cursor = gameRepo.collection.find(
DBObject("next" -> DBObject("$type" -> 3)) ++
("updatedAt" $gt (DateTime.now - 1.month)),
("updatedAt" $gt (DateTime.now - 3.days)),
DBObject("next" -> true)
)
val exists = (id: String) gameRepo.collection.count(