aurweb/templates
Kevin Morris 4de18d8134
fix(FastAPI): voted/notified query efficiency
Previously, we were running a single ORM query for every single package
to check for its voted or notified states. Now, we perform a single
ORM query for each of the set of voted or notified packages in
relation with the request user.

This improves performance drastically at the expense of some
manual code additions and set-dependency; i.e. we add a bit
more complexity and roundabout way of getting our data.

Closes: https://gitlab.archlinux.org/archlinux/aurweb/-/issues/102

Signed-off-by: Kevin Morris <kevr@0cost.org>
2021-09-19 00:34:08 -07:00
..
account add /accounts/ (get, post) routes 2021-07-01 11:08:56 -07:00
errors Adding route tests 2021-06-05 19:52:56 -07:00
packages fix(FastAPI): only show comments partial if they exist 2021-09-12 00:47:34 -07:00
partials fix(FastAPI): voted/notified query efficiency 2021-09-19 00:34:08 -07:00
tos [FastAPI] add /tos routes (get, post) 2021-06-24 19:12:49 -07:00
tu /tu/{proposal_id}: Do not show voters if there are none 2021-06-26 04:43:00 -07:00
addvote.html add /addvote/ (get, post) routes 2021-07-01 11:08:44 -07:00
dashboard.html fix(FastAPI): voted/notified query efficiency 2021-09-19 00:34:08 -07:00
home.html [FastAPI] Modularize homepage and add side panel 2021-08-17 19:58:32 -07:00
index.html routers.html: add authenticated dashboard to homepage 2021-08-17 21:59:13 -07:00
login.html implement login + logout routes and templates 2021-06-05 20:11:17 -07:00
passreset.html add passreset routes 2021-06-05 20:11:17 -07:00
pkgbase.html add /pkgbase/{name} route 2021-07-27 20:48:40 -07:00
register.html add user registration routes 2021-06-05 20:11:17 -07:00