perf(home): cut cold home-feed latency from 3.9s to 1.5s #8
No reviewers
Labels
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
techfather/tasterr!8
Loading…
Reference in a new issue
No description provided.
Delete branch "perf/home-feed-latency"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Cold /api/v1/home took ~4s on the live instance. Two costs dominated it:
AVAILABILITY_SCAN_LIMITcandidates by base score. The boost is worth GAMMA_AVAILABILITY (~0.1) of score, so the far tail cannot reach the rail.Measured in an isolated container against a copy of the live database (fresh caches, same data):
Tests: backend 100 passed in the touched suites (5 new cases cover the batching, the priority order and the bounded probe); ruff check/format clean.
f99c6089dc89d516124aLocal automated review (forgejo-autocheck).
Required checks are green on
89d516124a: 3/3.Detected stack: repo, python, container.
Approving so the change is not blocked on a second human reviewer.