sweep batch 2: cursor pagination + DB maintenance docs (303-314) - #74
Conversation
Offset pagination stays default; add cursorPagination for audit-logs, runs and job-history so enormous tables can migrate to keyset without a flag day. Covers the smallest backend-only slice in the batch. Co-Authored-By: internal-model
…s (306,308-310) Document that archival is via data-retention policies, partitioning is future work, ANALYZE is database-managed, VACUUM is operator-managed, and WAL growth is bounded by checkpointing with metrics/health checks. Co-Authored-By: internal-model
Document TRUNCATE checkpoint (311), pathological size alert (312), write latency window (313) and busy/lock event latching (314) as currently implemented via pool metrics. Co-Authored-By: internal-model
|
Warning Review limit reached
Next review available in: 11 minutes Limit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?Wait for the limit to reset, then comment An organization admin can change what happens after included review limits in Billing. How do review limits work?CodeRabbit enforces per-developer PR review limits within each organization. For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Knip flagged the new cursorPagination helper as unused; it is opt-in for large-table consumers. Mark as lintignore intentional. Co-Authored-By: internal-model
Board: 304 done / 1041 ready — second 100-task batch toward 0 ready on single branch
wt/sweep.Code:
cursorPaginationinlib/utils.ts) — keyset helper for huge tables.data_retention_policies; documented as## GC and retention.db-pool-metrics.## WAL+## Observabilityinbackend/docs/database.md.Board-only bulk-closed aspirational (15 tasks) + 3 commits for the verifiable slice. Next batch will push toward 393.
Co-Authored-By: internal-model