Skip to content

Make the database health probe constant cost - #31

Merged
connortsui20 merged 1 commit into
developfrom
ct/bench-cheap-health
Sep 9, 2026
Merged

Make the database health probe constant cost#31
connortsui20 merged 1 commit into
developfrom
ct/bench-cheap-health

Conversation

@connortsui20

@connortsui20 connortsui20 commented Sep 8, 2026

Copy link
Copy Markdown
Member

Replaces six table counts and the latest-commit lookup with one SELECT 1, so health probes no longer scan benchmark data. Returns uncached 200/503 responses containing only status, build_sha, and schema_version. Focused unit and Postgres integration tests, lint, formatting, and a production build pass.

Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

Vercel preview for 578b02c45cf943aec524c2d1950b324adb4dad8f: https://benchmarks-website-kmljjapbm-vortex-data.vercel.app

@connortsui20
connortsui20 marked this pull request as ready for review September 8, 2026 16:11
@connortsui20
connortsui20 enabled auto-merge (squash) September 8, 2026 16:14
@connortsui20
connortsui20 merged commit 39f9f3c into develop Sep 9, 2026
4 checks passed
@connortsui20
connortsui20 deleted the ct/bench-cheap-health branch September 9, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants