oliver-zehentleitner / maity
performance, hub: prod timing after deploy 5 — members statement count grows with data; forget_expired_addresses re-measure
tsk-xrtxsvv6f974 Done An agent
Follow-up of tsk-6srccd2r1h62 (lotse 99936). Start after deploy 5.
- members: the statement count grows with data. Locally
GET …/memberssends a flat number of statements from 1 to 9 agents (the step-1 measurement on tsk-6srccd2r1h62). On prod the count varies from call to call.
- Find which data it grows with: members, projects per member, instances or sessions per agent, or a path the local fixture never takes.
- Then reproduce it locally with a fixture of that shape, and fix it with a statement-count test that fails on the old code.
- Input: the
maity_hub.timinglines (#1542) of slowmemberscalls, with that project's member and instance counts, asked from ops. No prod access.
- `forget_expired_addresses`: measure again. The timing line is the request's total, so a
db_msworth a look on a password login or session list is the signal. Before any index, the sweep is measured alone on prod data (hub/context/auth.md, the sweep entry in #1569).
Boundary: no change to what any answer contains. A migration only with numbers, and with a slot from the review lead.