scionaltera / emergentmud

EmergentMUD is a free, text based "Multi-User Domain" that you play in your browser.
https://emergentmud.com
GNU Affero General Public License v3.0
5 stars 1 forks source link

Convert Repositories into PagingAndSortingRepositories #58

Closed scionaltera closed 6 years ago

scionaltera commented 6 years ago

In moving off of MongoDB there are a few places where the code used to rely on the database to sort the results. Now it sorts the results after fetching them because the CrudRepository has no methods on it that accept a Sort. However, there is a PagingAndSortingRepository subclass of CrudRepository that can accept a Sort.

Find the places where we do the sorting after the fetching and update those repositories to the PagingAndSortingRepository so that we can once again offload the sorting to the database where it belongs.