Closed samhotep closed 2 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 85.85%. Comparing base (
55311e3
) to head (0fd7100
). Report is 10 commits behind head on main.:exclamation: Current head 0fd7100 differs from pull request most recent head 6b7c018
Please upload reports for the commit 6b7c018 to get more accurate results.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
FWIW, there's been a few timeout related issues in the past, some of it being resolved by reducing the query limit. Hopefully this fixes the DB query itself and for good. Here are some:
https://github.com/canonical/ubuntu-com-security-api/issues/129 https://github.com/canonical/ubuntu-com-security-api/issues/101 https://github.com/canonical/ubuntu-com-security-api/issues/59 https://github.com/canonical/ubuntu-com-security-api/issues/31 https://github.com/canonical/ubuntu-com-security-api/issues/20
I'm not sure if we can improve cacheability of these requests as well. This would reduce the backend load and have the fronting content-cache units service requests from their local cache.
I suppose this is causing https://github.com/canonical/ubuntu.com/issues/13956
Done
Querying notices takes quite a while to complete, ~15s on average. This PR hopes to improve the db query by reworking how the notice json is built.
QA
./run serve
Notes