-
Notifications
You must be signed in to change notification settings - Fork 25
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
Utiliser une socket UNIX pour se connecter à la base de données en dev #5455
Conversation
9ae8fe5
to
3e66110
Compare
TCP has a measurable overhead for each DB query compared to the unix socket. https://momjian.us/main/blogs/pgblog/2012.html#June_6_2012
3e66110
to
ac6d8c9
Compare
On gagne en général une minute par rapport aux builds CI des dernières PRs:
|
Cool ! |
Je note la technique pour attirer notre attention sur cette PR grace aux mentions 👍 |
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.
Je passe de 2min43s à 2min40s en local, je suis conquis 😜
Mais ça marche tout aussi bien et consomme moins de ressources 👍
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.
Tourne parfaitement sous macOS également.
Navré d'imposer la socket au sein du projet et de ne pas pouvoir utiliser XDG_RUNTIME_DIR
🤗
Tout comme Xavier, le gain en local est anecdotique mais c'est vraiment top en CI 👏
TCP has a measurable overhead for each DB query compared to the unix
socket.
https://momjian.us/main/blogs/pgblog/2012.html#June_6_2012