Skip to content

MySqlConnector: Constraints and limitations #1073

Answered by bgrainger
colin-sim asked this question in Q&A
Discussion options

You must be logged in to vote

1,000s of different databases simultaneously

You may benefit from disabling connection pooling (https://mysqlconnector.net/connection-options/#Pooling). By default, each unique connection string creates an implicit connection pool, which uses some amount of resources (memory, sockets). If you're connecting to 1,000s of servers, it may be best to avoid this overhead by adding Pooling = False; to each connection string. (The only downside is that connection.Close(); connection.Open(); will close then recreate a TCP (or SSL) connection to each server instead of reusing a pooled connection. But overall it may be better this way.)

What are the errors (exceptions) that I may encounter and po…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by colin-sim
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants