René's URL Explorer Experiment


Title: perf(db): per-role Postgres connection-pool profiles by TheodoreSpeaks · Pull Request #5232 · simstudioai/sim · GitHub

Open Graph Title: perf(db): per-role Postgres connection-pool profiles by TheodoreSpeaks · Pull Request #5232 · simstudioai/sim

X Title: perf(db): per-role Postgres connection-pool profiles by TheodoreSpeaks · Pull Request #5232 · simstudioai/sim

Description: Sim is the collaborative workspace to build, deploy, and monitor AI agents and workflows. Used by 100,000+ builders. - perf(db): per-role Postgres connection-pool profiles by TheodoreSpeaks · Pull Request #5232 · simstudioai/sim

Open Graph Description: Summary Drive the postgres-js pool max and application_name from a per-role profile map keyed by SIM_DB_ROLE (web/trigger/realtime), centralizing all sizing numbers in one as const map in packages...

X Description: Summary Drive the postgres-js pool max and application_name from a per-role profile map keyed by SIM_DB_ROLE (web/trigger/realtime), centralizing all sizing numbers in one as const map in packages...

Opengraph URL: https://github.com/simstudioai/sim/pull/5232

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:4c8a3a38-bea7-6fcd-56e5-de9933645782
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAEC4:29D5DB:8C356D:C0BA72:6AFB49D4
html-safe-nonce541b895ab2b0b14be05b013894a3a0b084c4f8fd21627e37b84f2af13876e556
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRUM0OjI5RDVEQjo4QzM1NkQ6QzBCQTcyOjZBRkI0OUQ0IiwidmlzaXRvcl9pZCI6IjY2MzIwOTEyODgyNjQ3MjI5MDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2a76e72c7734de029cddf8c1d2023ed1f5b8be33c44e45ce35c4b5b50e4efb49
hovercard-subject-tagpull_request:3945931158
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/simstudioai/sim/5232/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/d9819e04b74171ff2963cb76ed683f21a5e4c4dacdbdb19f9a57b5d164b14bcf/simstudioai/sim/pull/5232
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d9819e04b74171ff2963cb76ed683f21a5e4c4dacdbdb19f9a57b5d164b14bcf/simstudioai/sim/pull/5232
og:image:altSummary Drive the postgres-js pool max and application_name from a per-role profile map keyed by SIM_DB_ROLE (web/trigger/realtime), centralizing all sizing numbers in one as const map in packages...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameTheodoreSpeaks
hostnamegithub.com
expected-hostnamegithub.com
Noneacf7616d06cc051644705b379878c9bb13dc5e70ecf4ffd9b34140f8ac01d7e1
turbo-cache-controlno-cache
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release26504db649b58525278f77a52b80ba5f10d5f4de
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/5232#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5232
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5232
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/5232
Reloadhttps://github.com/simstudioai/sim/pull/5232
Reloadhttps://github.com/simstudioai/sim/pull/5232
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests199 (199)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
https://github.com/simstudioai/sim
TheodoreSpeakshttps://github.com/TheodoreSpeaks
staginghttps://github.com/simstudioai/sim/tree/staging
perf/db-pool-profileshttps://github.com/simstudioai/sim/tree/perf/db-pool-profiles
Conversationhttps://github.com/simstudioai/sim/pull/5232
Commits3 (3)https://github.com/simstudioai/sim/pull/5232/commits
Checkshttps://github.com/simstudioai/sim/pull/5232/checks
Files changedhttps://github.com/simstudioai/sim/pull/5232/files
perf(db): per-role Postgres connection-pool profileshttps://github.com/simstudioai/sim/pull/5232#top
TheodoreSpeakshttps://github.com/TheodoreSpeaks
staginghttps://github.com/simstudioai/sim/tree/staging
perf/db-pool-profileshttps://github.com/simstudioai/sim/tree/perf/db-pool-profiles
https://github.com/TheodoreSpeaks
TheodoreSpeakshttps://github.com/TheodoreSpeaks
Jun 27, 2026https://github.com/simstudioai/sim/pull/5232#issue-4756319352
feat(db): attribute Postgres connections by runtime via application_name #5211https://github.com/simstudioai/sim/pull/5211
Contributor License Agreement (CLA)https://github.com/simstudioai/sim/pull/CONTRIBUTING.md#contributor-license-agreement-cla
Please reload this pagehttps://github.com/simstudioai/sim/pull/5232
https://github.com/TheodoreSpeaks
perf(db): drive Postgres pool size + application_name from per-role p…https://github.com/simstudioai/sim/pull/5232/commits/590bfcbac91bbba72e8ed76d23c1342887aebaf2
590bfcbhttps://github.com/simstudioai/sim/pull/5232/commits/590bfcbac91bbba72e8ed76d23c1342887aebaf2
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
Jun 27, 2026https://github.com/simstudioai/sim/pull/5232#issuecomment-4814710272
Please reload this pagehttps://github.com/simstudioai/sim/pull/5232
Vercel for GitHubhttps://vercel.link/github-learn-more
docshttps://vercel.com/sim-studio/docs
https://camo.githubusercontent.com/833ba95642364322d56bfc6cc95692affdd7a5a6ca7b50fdcc44aa7e47372d3b/68747470733a2f2f76657263656c2e636f6d2f7374617469632f7374617475732f72656164792e737667
Readyhttps://vercel.com/sim-studio/docs/6PYewMyo3iaRC5S8q6PuymBQ41PZ
Previewhttps://docs-git-perf-db-pool-profiles-sim-studio.vercel.app
Commenthttps://vercel.live/open-feedback/docs-git-perf-db-pool-profiles-sim-studio.vercel.app?via=pr-comment-feedback-link
https://vercel.com/vercel-agent/request-review?owner=simstudioai&repo=sim&pr=5232
Please reload this pagehttps://github.com/simstudioai/sim/pull/5232
https://github.com/TheodoreSpeaks
TheodoreSpeakshttps://github.com/TheodoreSpeaks
Jun 27, 2026https://github.com/simstudioai/sim/pull/5232#issuecomment-4814710447
@greptilehttps://github.com/greptile
Please reload this pagehttps://github.com/simstudioai/sim/pull/5232
https://github.com/apps/cursor
cursorhttps://github.com/apps/cursor
Jun 27, 2026https://github.com/simstudioai/sim/pull/5232#issuecomment-4814710599
Please reload this pagehttps://github.com/simstudioai/sim/pull/5232
Cursor Bugbothttps://cursor.com/bugbot
c458c1dhttps://github.com/simstudioai/sim/commit/c458c1d4e2b0bbfdcc772307979868d965ad1997
herehttps://www.cursor.com/dashboard/bugbot
Please reload this pagehttps://github.com/simstudioai/sim/pull/5232
https://github.com/apps/greptile-apps
greptile-appshttps://github.com/apps/greptile-apps
Jun 27, 2026https://github.com/simstudioai/sim/pull/5232#issuecomment-4814722535
Please reload this pagehttps://github.com/simstudioai/sim/pull/5232
"fix(db): throw on invalid SIM_DB_ROLE in..."https://github.com/simstudioai/sim/commit/c458c1d4e2b0bbfdcc772307979868d965ad1997
Re-trigger Greptilehttps://app.greptile.com/api/retrigger?id=40240705
Please reload this pagehttps://github.com/simstudioai/sim/pull/5232
https://github.com/apps/greptile-apps
greptile-appshttps://github.com/apps/greptile-apps
Jun 27, 2026https://github.com/simstudioai/sim/pull/5232#issuecomment-4814722773
"perf(db): drive Postgres pool size + app..."https://github.com/simstudioai/sim/commit/590bfcbac91bbba72e8ed76d23c1342887aebaf2
Re-trigger Greptilehttps://app.greptile.com/api/retrigger?id=40240705
Please reload this pagehttps://github.com/simstudioai/sim/pull/5232
https://github.com/apps/greptile-apps
greptile-appshttps://github.com/apps/greptile-apps
Jun 27, 2026 https://github.com/simstudioai/sim/pull/5232#pullrequestreview-4583737527
View reviewed changes https://github.com/simstudioai/sim/pull/5232/files/590bfcbac91bbba72e8ed76d23c1342887aebaf2
apps/realtime/src/env.tshttps://github.com/simstudioai/sim/pull/5232/files/590bfcbac91bbba72e8ed76d23c1342887aebaf2#diff-5c65306e6030967d7ca24f19aa8053b848025339b0bbdbc55f7b820bf246f478
greptile-appshttps://github.com/apps/greptile-apps
Jun 27, 2026https://github.com/simstudioai/sim/pull/5232#discussion_r3484987999
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://github.com/simstudioai/sim/pull/5232
Please reload this pagehttps://github.com/simstudioai/sim/pull/5232
https://github.com/apps/greptile-apps
greptile-appshttps://github.com/apps/greptile-apps
Jun 27, 2026 https://github.com/simstudioai/sim/pull/5232#pullrequestreview-4583737617
View reviewed changes https://github.com/simstudioai/sim/pull/5232/files/590bfcbac91bbba72e8ed76d23c1342887aebaf2
apps/realtime/src/env.tshttps://github.com/simstudioai/sim/pull/5232/files/590bfcbac91bbba72e8ed76d23c1342887aebaf2#diff-5c65306e6030967d7ca24f19aa8053b848025339b0bbdbc55f7b820bf246f478
greptile-appshttps://github.com/apps/greptile-apps
Jun 27, 2026https://github.com/simstudioai/sim/pull/5232#discussion_r3484988099
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://github.com/simstudioai/sim/pull/5232
Please reload this pagehttps://github.com/simstudioai/sim/pull/5232
packages/db/db.tshttps://github.com/simstudioai/sim/pull/5232/files/590bfcbac91bbba72e8ed76d23c1342887aebaf2#diff-65562ec2df68f3735a9b4690adb4f844a74783c9f5c2d7a213a5124a6cd4900a
greptile-appshttps://github.com/apps/greptile-apps
Jun 27, 2026https://github.com/simstudioai/sim/pull/5232#discussion_r3484988105
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://github.com/simstudioai/sim/pull/5232
Please reload this pagehttps://github.com/simstudioai/sim/pull/5232
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
deployedhttps://docs-krihun80i-sim-studio.vercel.app
Previewhttps://docs-krihun80i-sim-studio.vercel.app
June 27, 2026 02:20https://github.com/simstudioai/sim/pull/5232#event-27269935247
View deploymenthttps://docs-krihun80i-sim-studio.vercel.app
https://github.com/TheodoreSpeaks
fix(db): throw on invalid SIM_DB_ROLE instead of silently using web p…https://github.com/simstudioai/sim/pull/5232/commits/c458c1d4e2b0bbfdcc772307979868d965ad1997
c458c1dhttps://github.com/simstudioai/sim/pull/5232/commits/c458c1d4e2b0bbfdcc772307979868d965ad1997
https://github.com/TheodoreSpeaks
TheodoreSpeakshttps://github.com/TheodoreSpeaks
Jun 27, 2026https://github.com/simstudioai/sim/pull/5232#issuecomment-4819899166
c458c1dhttps://github.com/simstudioai/sim/commit/c458c1d4e2b0bbfdcc772307979868d965ad1997
Please reload this pagehttps://github.com/simstudioai/sim/pull/5232
https://github.com/apps/cursor
cursorhttps://github.com/apps/cursor
Jun 27, 2026 https://github.com/simstudioai/sim/pull/5232#pullrequestreview-4585860888
View reviewed changes https://github.com/simstudioai/sim/pull/5232/files/c458c1d4e2b0bbfdcc772307979868d965ad1997
cursorhttps://github.com/apps/cursor
https://github.com/simstudioai/sim/pull/5232#pullrequestreview-4585860888
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://cursor.com/open?link=eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoiQlVHQk9UX0ZJWF9BTExfSU5fQ1VSU09SIiwiZGF0YSI6eyJyZWRpc0tleSI6ImJ1Z2JvdC1tdWx0aTowMTNhYTk2OS00MTYyLTRkYjQtYjliZS03OWY1NDRjNDFmZWYiLCJlbmNyeXB0aW9uS2V5IjoiSzBPMVdmcEhUSkg2dVZYaTdNdXZfSE51ZkpnbTZVeko2MXgzbWZhZ1NFWSIsImJyYW5jaCI6InBlcmYvZGItcG9vbC1wcm9maWxlcyIsInJlcG9Pd25lciI6InNpbXN0dWRpb2FpIiwicmVwb05hbWUiOiJzaW0ifX0
Cursor dashboardhttps://www.cursor.com/dashboard/bugbot
Cursor Bugbothttps://cursor.com/bugbot
c458c1dhttps://github.com/simstudioai/sim/commit/c458c1d4e2b0bbfdcc772307979868d965ad1997
herehttps://www.cursor.com/dashboard/bugbot
Please reload this pagehttps://github.com/simstudioai/sim/pull/5232
packages/db/db.tshttps://github.com/simstudioai/sim/pull/5232/files/c458c1d4e2b0bbfdcc772307979868d965ad1997#diff-65562ec2df68f3735a9b4690adb4f844a74783c9f5c2d7a213a5124a6cd4900a
Please reload this pagehttps://github.com/simstudioai/sim/pull/5232
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
deployedhttps://docs-atxtn60a2-sim-studio.vercel.app
Previewhttps://docs-atxtn60a2-sim-studio.vercel.app
June 27, 2026 18:06https://github.com/simstudioai/sim/pull/5232#event-27285185837
View deploymenthttps://docs-atxtn60a2-sim-studio.vercel.app
https://github.com/TheodoreSpeaks
TheodoreSpeakshttps://github.com/TheodoreSpeaks
Jun 27, 2026https://github.com/simstudioai/sim/pull/5232#issuecomment-4819941707
@greptilehttps://github.com/greptile
Please reload this pagehttps://github.com/simstudioai/sim/pull/5232
https://github.com/TheodoreSpeaks
fix(db): use Object.hasOwn for SIM_DB_ROLE validation to avoid protot…https://github.com/simstudioai/sim/pull/5232/commits/4b05050ed538cdc253d39bd123cdfa140f76412c
4b05050https://github.com/simstudioai/sim/pull/5232/commits/4b05050ed538cdc253d39bd123cdfa140f76412c
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
deployedhttps://docs-7k7sexat5-sim-studio.vercel.app
Previewhttps://docs-7k7sexat5-sim-studio.vercel.app
June 27, 2026 19:04https://github.com/simstudioai/sim/pull/5232#event-27286266159
View deploymenthttps://docs-7k7sexat5-sim-studio.vercel.app
https://github.com/TheodoreSpeaks
TheodoreSpeakshttps://github.com/TheodoreSpeaks
845a627https://github.com/simstudioai/sim/commit/845a6276d9523adb2fdd0e1e2d07a31101ae988f
Jun 27, 2026https://github.com/simstudioai/sim/pull/5232#event-27286414321
Please reload this pagehttps://github.com/simstudioai/sim/pull/5232
https://github.com/TheodoreSpeaks
TheodoreSpeakshttps://github.com/TheodoreSpeaks
June 27, 2026 19:15https://github.com/simstudioai/sim/pull/5232#event-27286419608
https://github.com/waleedlatif1
waleedlatif1https://github.com/waleedlatif1
Jun 27, 2026 https://github.com/simstudioai/sim/pull/5232#ref-pullrequest-4759808538
v0.7.16: security hardening, db o11y and profiling, settings UI #5245 https://github.com/simstudioai/sim/pull/5245
Deployedhttps://docs-7k7sexat5-sim-studio.vercel.app
vercel[bot]https://github.com/apps/vercel
View deployment https://docs-7k7sexat5-sim-studio.vercel.app
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5232
https://github.com/apps/greptile-apps
greptile-apps[bot] https://github.com/apps/greptile-apps
https://github.com/simstudioai/sim/pull/5232/files/590bfcbac91bbba72e8ed76d23c1342887aebaf2
https://github.com/apps/cursor
cursor[bot] https://github.com/apps/cursor
https://github.com/simstudioai/sim/pull/5232/files/c458c1d4e2b0bbfdcc772307979868d965ad1997
Please reload this pagehttps://github.com/simstudioai/sim/pull/5232
Please reload this pagehttps://github.com/simstudioai/sim/pull/5232
https://github.com/TheodoreSpeaks
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.