boostorg / boostorg/mysql

Connection pool: custom connection state

オープン
#252 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
C++
スター
299
フォーク
43
PR マージ指標
30日以内にマージされた PR はありません

説明

It is cool to see connection pool feature being developed right now!

Currently I use my own very simple implementation and as I have full control of the pooled connection, I try to prepare some statements on connection init and later reuse them from the pooled connection.

Taking brief look it seams that I am will not able to save cached statement and reuse it in my next request as:
1. I can get different connection which won't do as "A prepared statement is specific to the session in which it was created"
2. Internal reconnection which I do not control and statement could be deallocated.

If I understood correctly about these issues currently couldn't be resolved for caching statements myself, could I do feature request to add optional internal statements caching, so when we do prepare statement it could cache on first use\pop from cache. And may be some control for caching strategy always\frequent\manually selected

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

このリポジトリのコントリビューションガイドは索引されていません

評価

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

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

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