Waleed
284edf0b85
improvement(db): opt-in read-replica client + migration runner hardening (#4955)
* improvement(db): add opt-in read-replica client and harden migration runner
* fix(db): detect wrapped lock-timeout errors, jittered retries, direct migration DSN support
* fix(db): audit fixes — unparameterized SET, primary reads for authz scoping, shared error helper
* fix(db): pin migration session — disable max_lifetime recycling, guard backend pid across retries
* fix(db): gate pid session guard to direct migration connections (pooler pids legitimately vary)
* improvement(billing): route display-only usage aggregations to the read replica via executor threading
* chore(db): drop call-site justification comments
* chore(db): tighten doc comments
* ci(migrations): map optional direct-connection DSN secrets
* fix(data-drains): add stability window to time cursors so late-visible rows are never skipped
* fix(billing): resolve pagination cursor on primary; replica for member ledger display
* fix(billing): usage-limits returns cost and limit from one computation
2026-06-10 18:33:58 -07:00
..
2026-06-10 11:04:12 -07:00
2026-05-28 11:25:28 -07:00
2026-03-13 21:02:08 -07:00
2026-06-10 18:33:58 -07:00
2026-06-01 16:11:35 -07:00
2026-05-12 14:57:32 -07:00
2026-05-07 20:34:53 -07:00
2026-06-01 16:11:35 -07:00
2026-06-10 18:33:58 -07:00
2026-06-01 16:11:35 -07:00
2026-03-26 13:04:23 -07:00
2026-06-06 11:39:48 -07:00
2026-06-10 11:38:58 -07:00
2026-05-12 14:57:32 -07:00
2026-05-12 14:57:32 -07:00
2025-12-28 00:36:48 -08:00