Closed doublex closed 1 year ago
Yes, it isn't thread-safe, thus we should maintain a local connection pool per thread :).
Dear @wey-gu If I create a connection-pool with e.g. 30 connections. How can a thread query 30 GO-statements in parallel? Best wishes from Vienna!
Dear @wey-gu If I create a connection-pool with e.g. 30 connections. How can a thread query 30 GO-statements in parallel? Best wishes from Vienna!
Yes, you can, just ensure one session can only be used by one thread is enough.
I see! Thanks for explanation!
Does "session" this mean:
gclient.net.ConnectionPool()
must not be shared among threadsgclient.net.ConnectionPool()
is not shared among threadsMore precise, is this allowed?