Reducing user code problems view to recent 300

Loading 1000 took too long (~10min) in production.
This commit is contained in:
Matt Lott 2014-10-26 17:11:47 -07:00
parent cd0bed2df2
commit 0f721f9f48

View file

@ -28,7 +28,7 @@ module.exports = class UserCodeProblemsView extends RootView
lastMonth.setMonth lastMonth.getMonth() - 1
conditions = [
['limit', 1000]
['limit', 300]
['sort', '-created']
['where', 'created']
['gte', lastMonth.toString()]