-
Notifications
You must be signed in to change notification settings - Fork 85
Pre-warming connection pool #7141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Deployment failed with the following error: View Documentation: https://vercel.com/docs/two-factor-authentication |
Greptile OverviewGreptile SummaryPre-warms the async connection pool during server startup to prevent expensive type introspection (up to 7 seconds) on first connection usage. The warmup creates connections up to
Confidence Score: 4/5
Important Files ChangedFile Analysis
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 files reviewed, 1 comment
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
johnewart
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Should we do the same for the synchronous pool at some point?
erosselli
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, let's add a changelog
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7141 +/- ##
==========================================
- Coverage 87.30% 87.29% -0.01%
==========================================
Files 533 533
Lines 35095 35116 +21
Branches 4067 4068 +1
==========================================
+ Hits 30640 30656 +16
- Misses 3570 3574 +4
- Partials 885 886 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description Of Changes
Pre-warming async connection pool to prevent expensive type introspection on first connection usage. Local performance tests showed the type introspection taking up to 7 seconds on a busy database. This thread suggests disabling
jitbut we figured that's a change we'd want to run a broader performance test for.Steps to Confirm
Pre-Merge Checklist
CHANGELOG.mdupdatedmaindowngrade()migration is correct and works