AlmaLinux / AlmaLinux/build-system

Fix database connections leakage in core (web server)

オープン
#255 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
言語のデータがありません
スター
32
フォーク
11
PR マージ指標
30日以内にマージされた PR はありません

説明

Right now we connect to the database without any connection pooling. This means that for each new request we will create a new connection to the database. It leads to several caveats:

- Database connection is costly, so creating new one takes some time;
- We close most of them, but sometimes the connection is left hanging in idle or in idle in transaction state, so without some tweaking on database side we may exhaust our connections to the database;

We need to use a proper pooling (either sqlalchemy one or setup pgbouncer).

AC:

- No leaking connections to the database;
- Pooling is used instead of creating new connection each time;

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。