aurweb/templates/partials/packages
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
..
widgets [FastAPI] Modularize homepage and add side panel 2021-08-17 19:58:32 -07:00
actions.html jinja2: rename filter 'urlencode' to 'quote_plus' 2021-08-31 13:28:54 -07:00
comment.html implement /packages/{name} as its own route 2021-07-27 20:48:40 -07:00
comments.html [FastAPI] bugfix: remove use of scalar() in plural context 2021-08-17 20:59:38 -07:00
details.html routers.packages: Simplify some existence checks 2021-08-09 23:42:54 -07:00
package_metadata.html [FastAPI] include DepArch in dependency list 2021-08-30 18:48:53 -07:00
pkgbase_metadata.html add /pkgbase/{name} route 2021-07-27 20:48:40 -07:00
requests.html routers.html: add authenticated dashboard to homepage 2021-08-17 21:59:13 -07:00
results.html fix(FastAPI): voted/notified query efficiency 2021-09-19 00:34:08 -07:00
search.html templates: Translate pkgbase.html and partials 2021-07-27 20:48:40 -07:00