Skip to content

Fix benchmark page query timeouts - #29

Merged
connortsui20 merged 1 commit into
developfrom
claude/bench-vortex-server-error-mmsejq
Sep 8, 2026
Merged

connortsui20 merged 1 commit into
developfrom
claude/bench-vortex-server-error-mmsejq

Conversation

@connortsui20

Copy link
Copy Markdown
Member

Reads open_mode and uncompressed_bytes directly instead of converting whole rows to JSON. The previous queries serialized large runtime arrays and exceeded the 30-second PostgreSQL statement timeout, breaking the homepage and /api/groups. Migrations 009 and 010 are already applied in production. Validation: full CI checks, including PostgreSQL integration tests, plus a local production build and focused summary tests.

The random-access summary and chart queries reached `open_mode` through
`to_jsonb(r) ->> 'open_mode'`, and the compression-size summaries reached
`uncompressed_bytes` through `to_jsonb(s) ->> 'uncompressed_bytes'`. That
form was a bridge for databases that had not yet applied migrations 009
and 010, but `to_jsonb(r)` serializes the whole row. Every random-access
row carries an `all_runtimes_ns` array with tens of thousands of samples
(the benchmark records one entry per take for a 10 s time limit), so the
summary serialized the entire table's sample arrays on every cache fill.
On the production db.t4g.micro that statement now exceeds the 30 s
`statement_timeout`, the group cache fill fails, and every landing-page
render and `/api/groups` call dies with a server-side exception.

Both migrations are applied in production, so read the columns directly.
Locally, with 1000-sample arrays on a production-sized table, the
random-access summary drops from 11.4 s to 0.2 s and the compression-size
summary from 0.6 s to 0.3 s.

Signed-off-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CFtMV8EAAHQM27PFzJjC4R
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

Vercel preview for 42570ae63440283c3513bea517a0f413cbebb3e8: https://benchmarks-website-g8cfhtvjy-vortex-data.vercel.app

@connortsui20
connortsui20 merged commit 8115d47 into develop Sep 8, 2026
5 checks passed
@connortsui20
connortsui20 deleted the claude/bench-vortex-server-error-mmsejq branch September 8, 2026 13:22

This branch was successfully deployed

1 active deployment
preview f4321dfe Deployed Sep 8, 2026 by github-actions[bot]
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.

3 participants