René's URL Explorer Experiment


Title: perf(db): cut hot-path database work and close copilot cleanup gaps by waleedlatif1 · Pull Request #9419 · simstudioai/sim · GitHub

Open Graph Title: perf(db): cut hot-path database work and close copilot cleanup gaps by waleedlatif1 · Pull Request #9419 · simstudioai/sim

X Title: perf(db): cut hot-path database work and close copilot cleanup gaps by waleedlatif1 · Pull Request #9419 · simstudioai/sim

Description: Sim is the collaborative workspace to build, deploy, and monitor AI agents and workflows. Used by 100,000+ builders. - perf(db): cut hot-path database work and close copilot cleanup gaps by waleedlatif1 · Pull Request #9419 · simstudioai/sim

Open Graph Description: Summary Cuts Sim's heaviest database work and closes cleanup gaps. Each change was checked against production query statistics and plans first; reads return the same results as before. Billing ...

X Description: Summary Cuts Sim's heaviest database work and closes cleanup gaps. Each change was checked against production query statistics and plans first; reads return the same results as before. Bill...

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

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/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:018549a3-8413-aa1a-5888-db35b6d39f01
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9E88:27D28D:1437D0:1D76B3:6AFB0E52
html-safe-noncec904632e6a3cad8e6c26ee71d3f0845c7568f3e8260d412e285cfa2d6a9c3d6a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTg4OjI3RDI4RDoxNDM3RDA6MUQ3NkIzOjZBRkIwRTUyIiwidmlzaXRvcl9pZCI6IjE2ODI0MTY4MTcwOTMxNTIzMzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca6014a00af2503c2594bd6e51222068e8c242b8e533cfc27bcaf1c695e2751e2
hovercard-subject-tagpull_request:5057563490
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///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/9419/commits
twitter:imagehttps://opengraph.githubassets.com/038e619571b0a56e589a0cc8c7814798bc39706c20191853f981c268cf31c617/simstudioai/sim/pull/9419
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/038e619571b0a56e589a0cc8c7814798bc39706c20191853f981c268cf31c617/simstudioai/sim/pull/9419
og:image:altSummary Cuts Sim's heaviest database work and closes cleanup gaps. Each change was checked against production query statistics and plans first; reads return the same results as before. Billing ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamewaleedlatif1
hostnamegithub.com
expected-hostnamegithub.com
None4275ec98d19a530a209480d02854be81de24ad5a05b648333242fc516bfb573c
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
releaseba13208acc32a4e7a4a3b54cb2f0dea6001ba5f8
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/9419/commits#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F9419%2Fcommits
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%2F9419%2Fcommits
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/9419/commits
Reloadhttps://github.com/simstudioai/sim/pull/9419/commits
Reloadhttps://github.com/simstudioai/sim/pull/9419/commits
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests198 (198)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
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
perf/db-hot-pathshttps://github.com/simstudioai/sim/tree/perf/db-hot-paths
Conversationhttps://github.com/simstudioai/sim/pull/9419
Commits24 (24)https://github.com/simstudioai/sim/pull/9419/commits
Checkshttps://github.com/simstudioai/sim/pull/9419/checks
Files changedhttps://github.com/simstudioai/sim/pull/9419/files
perf(db): cut hot-path database work and close copilot cleanup gapshttps://github.com/simstudioai/sim/pull/9419/commits#top
waleedlatif1https://github.com/waleedlatif1
staginghttps://github.com/simstudioai/sim/tree/staging
perf/db-hot-pathshttps://github.com/simstudioai/sim/tree/perf/db-hot-paths
fix(billing): revoke a removed member's sessions after the workspace handoff lockshttps://github.com/simstudioai/sim/pull/9419/commits/5c99b5bc120a37480006dce98a243cf4995665c5
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
5c99b5bhttps://github.com/simstudioai/sim/pull/9419/commits/5c99b5bc120a37480006dce98a243cf4995665c5
https://github.com/simstudioai/sim/tree/5c99b5bc120a37480006dce98a243cf4995665c5
perf(billing): admit wand and chat-title model calls through the usage gate cachehttps://github.com/simstudioai/sim/pull/9419/commits/c9212090d62349ff1458cbf812760ee3f7abd869
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
c921209https://github.com/simstudioai/sim/pull/9419/commits/c9212090d62349ff1458cbf812760ee3f7abd869
https://github.com/simstudioai/sim/tree/c9212090d62349ff1458cbf812760ee3f7abd869
perf(workflows): withhold the deployed state blob when this process already caches ithttps://github.com/simstudioai/sim/pull/9419/commits/265cacef4269c7a480f5cd61c8d8778f2ff71b68
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
265cacehttps://github.com/simstudioai/sim/pull/9419/commits/265cacef4269c7a480f5cd61c8d8778f2ff71b68
https://github.com/simstudioai/sim/tree/265cacef4269c7a480f5cd61c8d8778f2ff71b68
perf(audit-logs): read each scope branch through its keyset indexhttps://github.com/simstudioai/sim/pull/9419/commits/152f5b824f03953c5a61eb428a88a51113169f08
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
152f5b8https://github.com/simstudioai/sim/pull/9419/commits/152f5b824f03953c5a61eb428a88a51113169f08
https://github.com/simstudioai/sim/tree/152f5b824f03953c5a61eb428a88a51113169f08
perf(tables): fetch only the mutated workspace's table triggershttps://github.com/simstudioai/sim/pull/9419/commits/f3f57b990b6e0a9b7d9d3f5307b8bc65dd0e1b45
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
f3f57b9https://github.com/simstudioai/sim/pull/9419/commits/f3f57b990b6e0a9b7d9d3f5307b8bc65dd0e1b45
https://github.com/simstudioai/sim/tree/f3f57b990b6e0a9b7d9d3f5307b8bc65dd0e1b45
perf(audit): hold a run's rollups for a minute instead of two secondshttps://github.com/simstudioai/sim/pull/9419/commits/03ca9c53f00c9cf00bd801d243e64443ca051441
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
03ca9c5https://github.com/simstudioai/sim/pull/9419/commits/03ca9c53f00c9cf00bd801d243e64443ca051441
https://github.com/simstudioai/sim/tree/03ca9c53f00c9cf00bd801d243e64443ca051441
perf(file-search): lock only the files a backfill page actually seedshttps://github.com/simstudioai/sim/pull/9419/commits/c25eab556c58eede70bb8591a6b8671f2d39f2a3
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
c25eab5https://github.com/simstudioai/sim/pull/9419/commits/c25eab556c58eede70bb8591a6b8671f2d39f2a3
https://github.com/simstudioai/sim/tree/c25eab556c58eede70bb8591a6b8671f2d39f2a3
perf(knowledge): count a completed listing window by windowhttps://github.com/simstudioai/sim/pull/9419/commits/0fe01409d2d4e958d425c58b0306470158cfdfd4
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
0fe0140https://github.com/simstudioai/sim/pull/9419/commits/0fe01409d2d4e958d425c58b0306470158cfdfd4
https://github.com/simstudioai/sim/tree/0fe01409d2d4e958d425c58b0306470158cfdfd4
perf(files): coalesce workspace list invalidation broadcasts per tabhttps://github.com/simstudioai/sim/pull/9419/commits/120b88703c572c81d33536f66df7c8a801c5845b
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
120b887https://github.com/simstudioai/sim/pull/9419/commits/120b88703c572c81d33536f66df7c8a801c5845b
https://github.com/simstudioai/sim/tree/120b88703c572c81d33536f66df7c8a801c5845b
fix(copilot): purge the copilot backend and stored files when a chat is hard-deletedhttps://github.com/simstudioai/sim/pull/9419/commits/ca8dd7e7642c47be40d827702faafcbabdf2f8a6
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
ca8dd7ehttps://github.com/simstudioai/sim/pull/9419/commits/ca8dd7e7642c47be40d827702faafcbabdf2f8a6
https://github.com/simstudioai/sim/tree/ca8dd7e7642c47be40d827702faafcbabdf2f8a6
fix(copilot): queue copilot backend cleanup for chats an account removal cascades awayhttps://github.com/simstudioai/sim/pull/9419/commits/f40a58e94930e43dd6f06da87eb4c94e2fedc4c0
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
f40a58ehttps://github.com/simstudioai/sim/pull/9419/commits/f40a58e94930e43dd6f06da87eb4c94e2fedc4c0
https://github.com/simstudioai/sim/tree/f40a58e94930e43dd6f06da87eb4c94e2fedc4c0
improvement(outbox): prune completed checkpoint expiry, file, memory and chat cleanup eventshttps://github.com/simstudioai/sim/pull/9419/commits/ab4448f3e0b464b87ded6e8b6e638d4072d11d4f
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
ab4448fhttps://github.com/simstudioai/sim/pull/9419/commits/ab4448f3e0b464b87ded6e8b6e638d4072d11d4f
https://github.com/simstudioai/sim/tree/ab4448f3e0b464b87ded6e8b6e638d4072d11d4f
perf(idempotency): drop the full-table stat scans and resume each cleanup batch where the last endedhttps://github.com/simstudioai/sim/pull/9419/commits/81c750d01686cba3b36f2f3c765c062a664d41c0
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
81c750dhttps://github.com/simstudioai/sim/pull/9419/commits/81c750d01686cba3b36f2f3c765c062a664d41c0
https://github.com/simstudioai/sim/tree/81c750d01686cba3b36f2f3c765c062a664d41c0
perf(db): drop prefix-covered indexes and vacuum churn-heavy tables soonerhttps://github.com/simstudioai/sim/pull/9419/commits/f35d8ce70e207c081cd8252255e2ee7f828a0d87
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
f35d8cehttps://github.com/simstudioai/sim/pull/9419/commits/f35d8ce70e207c081cd8252255e2ee7f828a0d87
https://github.com/simstudioai/sim/tree/f35d8ce70e207c081cd8252255e2ee7f828a0d87
perf(db): cover usage_log period sums with one index led by both period stampshttps://github.com/simstudioai/sim/pull/9419/commits/2d4a0dd6a27bfae1a0f4288ac4cea1e046985000
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
2d4a0ddhttps://github.com/simstudioai/sim/pull/9419/commits/2d4a0dd6a27bfae1a0f4288ac4cea1e046985000
https://github.com/simstudioai/sim/tree/2d4a0dd6a27bfae1a0f4288ac4cea1e046985000
chore(outbox): read the retention suite's database through a typed handlehttps://github.com/simstudioai/sim/pull/9419/commits/da014cbc761f9e93a1d51943061c748b5346c162
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
da014cbhttps://github.com/simstudioai/sim/pull/9419/commits/da014cbc761f9e93a1d51943061c748b5346c162
https://github.com/simstudioai/sim/tree/da014cbc761f9e93a1d51943061c748b5346c162
improvement(files): drop the unobserved folder-tree room callback memo and a pre-existing-behavior testhttps://github.com/simstudioai/sim/pull/9419/commits/405d5f622cde6998764bd97c21cbd80e26b72a23
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
405d5f6https://github.com/simstudioai/sim/pull/9419/commits/405d5f622cde6998764bd97c21cbd80e26b72a23
https://github.com/simstudioai/sim/tree/405d5f622cde6998764bd97c21cbd80e26b72a23
revert(billing): read the usage gate fresh for wand and chat-title model callshttps://github.com/simstudioai/sim/pull/9419/commits/0c598668e3bd3c65ad2879aa6ef476b659b1ee6e
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
0c59866https://github.com/simstudioai/sim/pull/9419/commits/0c598668e3bd3c65ad2879aa6ef476b659b1ee6e
https://github.com/simstudioai/sim/tree/0c598668e3bd3c65ad2879aa6ef476b659b1ee6e
fix(copilot): record a deleted chat's backend and file purge durably with its deletehttps://github.com/simstudioai/sim/pull/9419/commits/bde298c237133127c1eb37855823478211ca18f3
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
bde298chttps://github.com/simstudioai/sim/pull/9419/commits/bde298c237133127c1eb37855823478211ca18f3
https://github.com/simstudioai/sim/tree/bde298c237133127c1eb37855823478211ca18f3
docs(knowledge): say what the windowed reconciliation counts do and do not guaranteehttps://github.com/simstudioai/sim/pull/9419/commits/71185092e486e2e0daf51934c7d13e635dd072ad
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
7118509https://github.com/simstudioai/sim/pull/9419/commits/71185092e486e2e0daf51934c7d13e635dd072ad
https://github.com/simstudioai/sim/tree/71185092e486e2e0daf51934c7d13e635dd072ad
chore(copilot): prove the cleanup rollback tests fail on the fixture trigger, not any errorhttps://github.com/simstudioai/sim/pull/9419/commits/99c077748c6b2813ae2eb131ac286632bf004bd8
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
99c0777https://github.com/simstudioai/sim/pull/9419/commits/99c077748c6b2813ae2eb131ac286632bf004bd8
https://github.com/simstudioai/sim/tree/99c077748c6b2813ae2eb131ac286632bf004bd8
docs(auth): state what the admin removal cleanup hook cannot coverhttps://github.com/simstudioai/sim/pull/9419/commits/6e714dc94619d1bb903d9da4f543462de0482759
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
6e714dchttps://github.com/simstudioai/sim/pull/9419/commits/6e714dc94619d1bb903d9da4f543462de0482759
https://github.com/simstudioai/sim/tree/6e714dc94619d1bb903d9da4f543462de0482759
revert(audit): keep a run's rollup window at two secondshttps://github.com/simstudioai/sim/pull/9419/commits/d299e7b08b8d9a89fb2a7d8ca3b738f19a07147b
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
d299e7bhttps://github.com/simstudioai/sim/pull/9419/commits/d299e7b08b8d9a89fb2a7d8ca3b738f19a07147b
https://github.com/simstudioai/sim/tree/d299e7b08b8d9a89fb2a7d8ca3b738f19a07147b
perf(billing): bound cycle close's previous-period lookup below the elapsed periodhttps://github.com/simstudioai/sim/pull/9419/commits/aa7dc4ebd723bf9ca534b807c8fdde29efed3a07
https://github.com/waleedlatif1
waleedlatif1https://github.com/simstudioai/sim/commits?author=waleedlatif1
aa7dc4ehttps://github.com/simstudioai/sim/pull/9419/commits/aa7dc4ebd723bf9ca534b807c8fdde29efed3a07
https://github.com/simstudioai/sim/tree/aa7dc4ebd723bf9ca534b807c8fdde29efed3a07
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.