Skip to content

feat: schema cache to prevent thundering herd#1258

Open
levkk wants to merge 4 commits into
mainfrom
levkk-db-global-schema-cache
Open

feat: schema cache to prevent thundering herd#1258
levkk wants to merge 4 commits into
mainfrom
levkk-db-global-schema-cache

Conversation

@levkk

@levkk levkk commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

Sharded deployments with dozens / hundreds of users will stampede the servers to load the schema. With large schemas, e.g., thousands of tables, and multiple replicas, this is pretty slow and will cause issues.

The cache is using the database name and shard number, which uniquely identifies a host in pgdog.toml.

@levkk
levkk requested review from meskill and sgrif July 23, 2026 21:54
@blacksmith-sh

This comment has been minimized.

@codecov

codecov Bot commented Jul 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

1 participant