How does sql package implement connection pool? Let's dive deep source code!

Time
2025年8月09日 15:10 ~ 15:40
Speaker
vic
Room
TR212
Collaborative Notes
https://hackmd.io/S1mA25bOle
MandarinIntermediate
Golang Taiwan

Abstract

database/sql is one of the packages that every golang programmer will use, and its built-in connection pool is a key feature to improve the performance of SQL execution, but did you know that an accidental connection pool can cause the program to get stuck and bottleneck performance? Let’s explore the inner workings of the connection pool through source code, and discuss how to manage the connection pool together! (Notice: The English content is automatically translated and may contain inaccuracies or misinterpretations. Please refer to the original version for the most accurate information.)

About the Speaker

vic

vic

Hi, I’m a passionate software engineer who loves the Go programming language and enjoys sharing knowledge and experiences through writing. On my Medium page, you’ll find insights from my journey in software development, hands-on project experience, and reflections from everyday life. Beyond technical articles, I also share thoughts on personal growth, workplace observations, and future trends. I hope my writing inspires you and offers fresh perspectives—let’s learn and grow together here!

Here is my medium : https://medium.com/@vicxu/about.