Order users list in the database rather than in memory#2050
Conversation
f4202f0 to
b14fc5b
Compare
|
I haven't figured out how to test this yet, since the issue is only noticeable in prod |
ed02b1f to
1cadad6
Compare
|
Think this is a good idea regardless, our current implementation is causes a database query per user (i.e. 2000+ query's to load the users page) due to the |
1cadad6 to
7956984
Compare
|
7956984 to
224ad7b
Compare
|
|
🎉 A review copy of this PR has been deployed! You can reach it at: https://pr-2050.admin.review.forms.service.gov.uk/ It may take 5 minutes or so for the application to be fully deployed and working. If it still isn't ready For the sign in details and more information, see the review apps wiki page. |
|
This was included in #2229 |



What problem does this pull request solve?
Trello card: https://trello.com/c/UXjZG0ZG/2946-improve-load-speed-on-users-page
This is an attempt to fix the performance issue we see on the Users page doing the ordering in the database query, rather than ordering the items in memory in the app after they've been fetched from the database.
Things to consider when reviewing