René's URL Explorer Experiment


Title: perf(webapp,run-engine,database): resolve the newest worker and deployment by createdAt by ericallam · Pull Request #4452 · triggerdotdev/trigger.dev · GitHub

Open Graph Title: perf(webapp,run-engine,database): resolve the newest worker and deployment by createdAt by ericallam · Pull Request #4452 · triggerdotdev/trigger.dev

X Title: perf(webapp,run-engine,database): resolve the newest worker and deployment by createdAt by ericallam · Pull Request #4452 · triggerdotdev/trigger.dev

Description: Trigger.dev – build and deploy durable AI agents and workflows - perf(webapp,run-engine,database): resolve the newest worker and deployment by createdAt by ericallam · Pull Request #4452 · triggerdotdev/trigger.dev

Open Graph Description: Summary Resolving "the most recent background worker for this environment" was ordered by id, which Postgres serves by scanning the primary key backwards and betting it finds a row for th...

X Description: Summary Resolving "the most recent background worker for this environment" was ordered by id, which Postgres serves by scanning the primary key backwards and betting it finds a ro...

Opengraph URL: https://github.com/triggerdotdev/trigger.dev/pull/4452

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:3678d1b7-b606-8ce9-3163-d43145a0191f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8CB4:1E3FD3:324D7B5:47572F4:6AFAF128
html-safe-nonce08b1420e026f0808742c927f4550d4d35e698c4baa0e11dbb3cb6d4f86b7faf9
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Q0I0OjFFM0ZEMzozMjREN0I1OjQ3NTcyRjQ6NkFGQUYxMjgiLCJ2aXNpdG9yX2lkIjoiMjc5MjU0NDQ5MTYyODMyNzIwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacbd0a5daac33120db228ed383f156f14e2008f918279de896927731559ffc442f
hovercard-subject-tagpull_request:4182888787
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/triggerdotdev/trigger.dev/4452/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/43eac4846574b8f56929cda419f70b76eaca4b18b25ded0c244eb547253633a9/triggerdotdev/trigger.dev/pull/4452
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/43eac4846574b8f56929cda419f70b76eaca4b18b25ded0c244eb547253633a9/triggerdotdev/trigger.dev/pull/4452
og:image:altSummary Resolving "the most recent background worker for this environment" was ordered by id, which Postgres serves by scanning the primary key backwards and betting it finds a row for th...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameericallam
hostnamegithub.com
expected-hostnamegithub.com
None0178036d8230524a18422872393ab7e708443ae4c2047f758560a2db870c1913
turbo-cache-controlno-cache
go-importgithub.com/triggerdotdev/trigger.dev git https://github.com/triggerdotdev/trigger.dev.git
octolytics-dimension-user_id95297378
octolytics-dimension-user_logintriggerdotdev
octolytics-dimension-repository_id572570113
octolytics-dimension-repository_nwotriggerdotdev/trigger.dev
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id572570113
octolytics-dimension-repository_network_root_nwotriggerdotdev/trigger.dev
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
releasea85e96a83bed7871993e6b1ffda24105928eee17
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/triggerdotdev/trigger.dev/pull/4452#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4452
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%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4452
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=triggerdotdev%2Ftrigger.dev
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4452
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4452
Reloadhttps://github.com/triggerdotdev/trigger.dev/pull/4452
triggerdotdevhttps://github.com/triggerdotdev
trigger.devhttps://github.com/triggerdotdev/trigger.dev
Codehttps://github.com/triggerdotdev/trigger.dev
Issues203 (203)https://github.com/triggerdotdev/trigger.dev/issues
Pull requests67 (67)https://github.com/triggerdotdev/trigger.dev/pulls
Discussionshttps://github.com/triggerdotdev/trigger.dev/discussions
Actionshttps://github.com/triggerdotdev/trigger.dev/actions
Projectshttps://github.com/triggerdotdev/trigger.dev/projects
Security and quality39 (39)https://github.com/triggerdotdev/trigger.dev/security
Insightshttps://github.com/triggerdotdev/trigger.dev/pulse
https://github.com/triggerdotdev/trigger.dev
ericallamhttps://github.com/ericallam
mainhttps://github.com/triggerdotdev/trigger.dev/tree/main
feature/tri-12808-order-backgroundworker-most-recent-worker-lookup-byhttps://github.com/triggerdotdev/trigger.dev/tree/feature/tri-12808-order-backgroundworker-most-recent-worker-lookup-by
Conversationhttps://github.com/triggerdotdev/trigger.dev/pull/4452
Commits2 (2)https://github.com/triggerdotdev/trigger.dev/pull/4452/commits
Checkshttps://github.com/triggerdotdev/trigger.dev/pull/4452/checks
Files changedhttps://github.com/triggerdotdev/trigger.dev/pull/4452/files
perf(webapp,run-engine,database): resolve the newest worker and deployment by createdAthttps://github.com/triggerdotdev/trigger.dev/pull/4452#top
ericallamhttps://github.com/ericallam
mainhttps://github.com/triggerdotdev/trigger.dev/tree/main
feature/tri-12808-order-backgroundworker-most-recent-worker-lookup-byhttps://github.com/triggerdotdev/trigger.dev/tree/feature/tri-12808-order-backgroundworker-most-recent-worker-lookup-by
https://github.com/ericallam
ericallamhttps://github.com/ericallam
Aug 1, 2026https://github.com/triggerdotdev/trigger.dev/pull/4452#issue-5035779181
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4452
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4452
https://github.com/ericallam
perf(webapp,run-engine,database): resolve the newest worker and deplo…https://github.com/triggerdotdev/trigger.dev/pull/4452/commits/dc20f17ffbd4184da1850d1fab0f61fc9d1c14f1
dc20f17https://github.com/triggerdotdev/trigger.dev/pull/4452/commits/dc20f17ffbd4184da1850d1fab0f61fc9d1c14f1
https://github.com/apps/changeset-bot
changeset-bothttps://github.com/apps/changeset-bot
Aug 1, 2026https://github.com/triggerdotdev/trigger.dev/pull/4452#issuecomment-5150285870
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4452
e93a16dhttps://github.com/triggerdotdev/trigger.dev/commit/e93a16dd9b11bfe857f1ce7fb3da33a2af044a83
Click here to learn what changesets are, and how to add onehttps://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md
Click here if you're a maintainer who wants to add a changeset to this PRhttps://github.com/triggerdotdev/trigger.dev/new/feature/tri-12808-order-backgroundworker-most-recent-worker-lookup-by?filename=.changeset/easy-words-shine.md&value=---%0A%22%40trigger.dev%2Fdatabase%22%3A%20patch%0A%22%40internal%2Frun-engine%22%3A%20patch%0A%22webapp%22%3A%20patch%0A---%0A%0Aperf(webapp%2Crun-engine%2Cdatabase)%3A%20resolve%20the%20newest%20worker%20and%20deployment%20by%20createdAt%0A
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4452
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Aug 1, 2026https://github.com/triggerdotdev/trigger.dev/pull/4452#issuecomment-5150293759
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4452
https://app.coderabbit.ai/change-stack/triggerdotdev/trigger.dev/pull/4452?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack
CodeRabbithttps://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=triggerdotdev/trigger.dev&utm_content=4452
Xhttps://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai
Mastodonhttps://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai
Reddithttps://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai
LinkedInhttps://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4452
https://github.com/ericallam
ericallamhttps://github.com/ericallam
August 1, 2026 08:08https://github.com/triggerdotdev/trigger.dev/pull/4452#event-28812542251
https://github.com/apps/devin-ai-integration
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4452
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4452
https://github.com/ericallam
fix(webapp): honor the caller's prisma client in the latest-deploymen…https://github.com/triggerdotdev/trigger.dev/pull/4452/commits/e93a16dd9b11bfe857f1ce7fb3da33a2af044a83
e93a16dhttps://github.com/triggerdotdev/trigger.dev/pull/4452/commits/e93a16dd9b11bfe857f1ce7fb3da33a2af044a83
https://github.com/ericallam
ericallamhttps://github.com/ericallam
August 1, 2026 08:17https://github.com/triggerdotdev/trigger.dev/pull/4452#event-28812904040
https://github.com/apps/devin-ai-integration
devin-ai-integrationhttps://github.com/apps/devin-ai-integration
Aug 1, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4452#pullrequestreview-4834250716
View reviewed changes https://github.com/triggerdotdev/trigger.dev/pull/4452/files/e93a16dd9b11bfe857f1ce7fb3da33a2af044a83
devin-ai-integrationhttps://github.com/apps/devin-ai-integration
https://github.com/triggerdotdev/trigger.dev/pull/4452#pullrequestreview-4834250716
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://app.devin.ai/review/triggerdotdev/trigger.dev/pull/4452
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4452
apps/webapp/app/v3/models/workerDeployment.server.tshttps://github.com/triggerdotdev/trigger.dev/pull/4452/files/e93a16dd9b11bfe857f1ce7fb3da33a2af044a83#diff-31023221e76274768c3eef882a1853dfcb7e4bf659cac6756de5f1960f833435
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4452
internal-packages/run-engine/src/engine/controlPlaneResolver.tshttps://github.com/triggerdotdev/trigger.dev/pull/4452/files/e93a16dd9b11bfe857f1ce7fb3da33a2af044a83#diff-05ad30041d1f8aba6f497a3b3bd12d9fb4d5b27d64f21ffc5c3b91c4cceeb857
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4452
https://github.com/ericallam
ericallamhttps://github.com/ericallam
August 1, 2026 08:19https://github.com/triggerdotdev/trigger.dev/pull/4452#event-28812970359
https://github.com/0ski
0skihttps://github.com/0ski
Aug 1, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4452#pullrequestreview-4834415836
View reviewed changes https://github.com/triggerdotdev/trigger.dev/pull/4452/files/e93a16dd9b11bfe857f1ce7fb3da33a2af044a83
https://github.com/ericallam
ericallamhttps://github.com/ericallam
f9c8d51https://github.com/triggerdotdev/trigger.dev/commit/f9c8d518c7da654104fa343dca167db50428db47
Aug 1, 2026https://github.com/triggerdotdev/trigger.dev/pull/4452#event-28816028466
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4452
https://github.com/ericallam
ericallamhttps://github.com/ericallam
August 1, 2026 10:32https://github.com/triggerdotdev/trigger.dev/pull/4452#event-28816028947
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Aug 1, 2026 https://github.com/triggerdotdev/trigger.dev/pull/4452#ref-pullrequest-5028941364
chore: release v4.5.10 #4440 https://github.com/triggerdotdev/trigger.dev/pull/4440
https://github.co/hiddenchars
https://github.com/triggerdotdev/trigger.dev/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%2Ftriggerdotdev%2Ftrigger.dev%2Fpull%2F4452
https://github.com/apps/devin-ai-integration
devin-ai-integration[bot] https://github.com/apps/devin-ai-integration
https://github.com/triggerdotdev/trigger.dev/pull/4452/files/e93a16dd9b11bfe857f1ce7fb3da33a2af044a83
https://github.com/0ski
0ski https://github.com/0ski
https://github.com/triggerdotdev/trigger.dev/pull/4452/files/e93a16dd9b11bfe857f1ce7fb3da33a2af044a83
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4452
Please reload this pagehttps://github.com/triggerdotdev/trigger.dev/pull/4452
https://github.com/ericallam
https://github.com/0ski
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.