Skip to content

Fix home repo n+1 issue#1630

Merged
jb3 merged 3 commits into
mainfrom
fix/home-repo-n-plus-one
Jul 6, 2026
Merged

Fix home repo n+1 issue#1630
jb3 merged 3 commits into
mainfrom
fix/home-repo-n-plus-one

Conversation

@ChrisLovering

Copy link
Copy Markdown
Member

No description provided.

Refreshing stale repo metadata fired a SELECT + UPDATE per repo (12 queries
for 6 repos). Now fetches all existing records in one query and bulk_updates
them, keeping the total at 2-3 queries regardless of repo count.
Replaces the loose dict[str, dict[str, str]] annotation so Pylance can
narrow forks_count/stargazers_count to int without casts.
@ChrisLovering ChrisLovering requested review from jb3 and jchristgit July 4, 2026 15:24
@netlify

netlify Bot commented Jul 4, 2026

Copy link
Copy Markdown

Deploy Preview for pydis-static ready!

Name Link
🔨 Latest commit 37d9175
🔍 Latest deploy log https://app.netlify.com/projects/pydis-static/deploys/6a4ad2fa5d42230008e05f98
😎 Deploy Preview https://deploy-preview-1630--pydis-static.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 100.0%. remained the same — fix/home-repo-n-plus-one into main

@jb3 jb3 merged commit 537c5d9 into main Jul 6, 2026
11 checks passed
@jb3 jb3 deleted the fix/home-repo-n-plus-one branch July 6, 2026 17: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.

3 participants