Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to speed up connection pool creation #1157

2br-2b started this conversation in General
Discussion options

Hello!

I have a discord bot which creates a connection pool at startup and maintains it while running.

When diagnosing slow startup issues, I've found that creating the connection pool (with 3 connections) is the slowest part, taking around 4 seconds. I figure there's going to be some delay here no matter what, and I'm guessing part of it is a problem connecting to the database, but I'm trying to see if there's any way I can speed this creation up.

Any advice on how I can improve the initial creation time, or do I just have to give up those 4 seconds? 😢

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /