Skip to content

Use one Postgres connection for operator bootstrap#65

Merged
shaypal5 merged 1 commit into
mainfrom
codex/single-connection-bootstrap
May 26, 2026
Merged

Use one Postgres connection for operator bootstrap#65
shaypal5 merged 1 commit into
mainfrom
codex/single-connection-bootstrap

Conversation

@shaypal5

Copy link
Copy Markdown
Contributor

Summary

  • add a single-client Postgres execution path for the operator bootstrap endpoint
  • avoid opening one pg connection per bootstrap query against Azure PostgreSQL
  • keep the D1/bootstrap fallback behavior unchanged

Verification

  • npm run check
  • npm run test
  • npm run build
  • local function invocation of /api/operator/bootstrap against the live database returned 200 in ~223ms with 4 agents, 5 forums, 12 messages, 1 live session

@shaypal5 shaypal5 added the bug Something isn't working label May 26, 2026
@shaypal5 shaypal5 merged commit 84c6517 into main May 26, 2026
1 check passed
@shaypal5 shaypal5 deleted the codex/single-connection-bootstrap branch May 26, 2026 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant