Commit Graph

3 Commits

Author SHA1 Message Date
Roardom
fac2446642 fix: keep query parameters on inbox/outbox pagination 2023-08-01 03:54:40 +00:00
Roardom
b6b4313bdc update: various database performance improvements
Use eager loading where necessary and add a few indexes. The existing index on private_messages for sender_id and read was probably a typo and intended for receiver_id. The first 3 tables indexes are added to are used for queries ran on every page load: namely the new pm, new notification and warnings indicator in the navbar. Additionally, another index on genre_movie proved useful for finding all the genres when given a movie id. Perhaps, another index for finding all movies within a genre would be good as well, but will leave that for a future optimization if deemed necessary.
2023-07-17 00:21:08 +00:00
Roardom
649d6a3573 refactor: cruddify user pms
Also use route model binding.
2023-07-07 00:28:47 +00:00