-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Expose more Sqlalchemy settings, part 1 #16742
base: main
Are you sure you want to change the base?
Conversation
@@ -347,12 +351,6 @@ async def engine(self) -> AsyncEngine: | |||
if self.timeout is not None: | |||
kwargs["connect_args"] = dict(timeout=self.timeout) | |||
|
|||
if self.sqlalchemy_pool_size is not None: |
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.
I added these in #16690 so this won't affect any released behavior.
CodSpeed Performance ReportMerging #16742 will not alter performanceComparing Summary
|
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.
lgtm!
This PR exposes additional SQLAlchemy configuration settings through Prefect settings to enable improved testing and optimization of database setups.
Note that this PR also introduces a change to our default SQLAlchemy configuration: specifically, it adds a new default of
pool_recycle=3600
where we used to not use pool recycling at all.If accepted, part 2 would be to expose settings that configure the
connect_args
specifically (which include application name, statement caching, etc.).