aurweb/aurweb
moson 27819b4465
fix: /rss lazy load issue & perf improvements
Some fixes for the /rss endpoints

* Load all data in one go:
Previously data was lazy loaded thus it made several sub-queries per
package (> 200 queries for composing the rss data for a single request).
Now we are performing a single SQL query.
(request time improvement: 550ms -> 130ms)
This also fixes aurweb-errors#510 and alike

* Remove some "dead code":
The fields "source, author, link" were never included in the rss output
(wrong or insufficient data passed to the different entry.xyz functions)
Nobody seems to be missing them anyways, so let's remove em.

* Remove "Last-Modified" header:
Obsolete since nginx can/will only handle "If-Modified-Since" requests
in it's current configuration. All requests are passed to fastapi anyways.

Signed-off-by: moson <moson@archlinux.org>
2023-07-13 18:27:02 +02:00
..
archives fix: include package data without "Last Packager" 2023-02-21 11:19:02 +01:00
auth fix: properly evaluate AURREMEMBER cookie 2023-05-26 22:57:46 +02:00
git fix: restore command, remove premature creation of pkgbase 2023-06-16 14:22:22 +02:00
models refactor: remove session_time from user.login 2023-05-26 23:02:38 +02:00
packages perf: tweak some search queries 2023-07-02 13:21:11 +02:00
pkgbase fix: add comments in email for direct deletion/merge 2023-03-14 11:17:45 +01:00
requests change(python): move request & pkgbase request routes 2022-01-02 01:44:36 -08:00
routers fix: /rss lazy load issue & perf improvements 2023-07-13 18:27:02 +02:00
scripts fix: add recipients to BCC when email is hidden 2023-07-08 11:19:02 +02:00
testing fix: validate timezone before use 2023-02-06 16:40:43 +00:00
users refactor: remove session_time from user.login 2023-05-26 23:02:38 +02:00
__init__.py Use setuptools to install Python modules 2016-09-29 22:07:06 +02:00
asgi.py housekeep: copy static files 2023-04-28 10:53:22 +02:00
aur_logging.py chore: rename logging.py and redis.py to avoid circular imports 2022-10-22 18:51:38 +01:00
aur_redis.py chore: rename logging.py and redis.py to avoid circular imports 2022-10-22 18:51:38 +01:00
benchmark.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
cache.py feat: add Prometheus metrics for Redis cache 2023-07-04 11:57:56 +02:00
captcha.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
config.py chore(release): prepare for 6.2.1 2023-01-27 18:08:54 +00:00
cookies.py refactor: remove session_time from user.login 2023-05-26 23:02:38 +02:00
db.py housekeep: remove PHP implementation 2023-04-28 16:10:32 +02:00
defaults.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
exceptions.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
filters.py fix: translations not containing string formatting 2023-07-10 18:02:20 +02:00
initdb.py chore: rename logging.py and redis.py to avoid circular imports 2022-10-22 18:51:38 +01:00
l10n.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
prometheus.py chore: rename logging.py and redis.py to avoid circular imports 2022-10-22 18:51:38 +01:00
ratelimit.py chore: rename logging.py and redis.py to avoid circular imports 2022-10-22 18:51:38 +01:00
rpc.py fix: include package data without "Last Packager" 2023-02-21 11:19:02 +01:00
schema.py feat: allow users to hide deleted comments 2023-04-24 09:13:38 +01:00
spawn.py housekeep: remove PHP implementation 2023-04-28 16:10:32 +02:00
templates.py fix: make AURSID a session cookie if "remember me" is not checked 2023-05-26 22:57:47 +02:00
time.py style: Run pre-commit 2022-08-22 22:40:45 +02:00
util.py fix: same ssh key entered multiple times 2023-07-09 14:52:15 +02:00