mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-29 23:43:51 -04:00
Reducing user code problems view to recent 300
Loading 1000 took too long (~10min) in production.
This commit is contained in:
parent
cd0bed2df2
commit
0f721f9f48
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ module.exports = class UserCodeProblemsView extends RootView
|
||||||
lastMonth.setMonth lastMonth.getMonth() - 1
|
lastMonth.setMonth lastMonth.getMonth() - 1
|
||||||
|
|
||||||
conditions = [
|
conditions = [
|
||||||
['limit', 1000]
|
['limit', 300]
|
||||||
['sort', '-created']
|
['sort', '-created']
|
||||||
['where', 'created']
|
['where', 'created']
|
||||||
['gte', lastMonth.toString()]
|
['gte', lastMonth.toString()]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue