Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

'Network Out Total' cut in half from MySql.Data.MySqlClient -> MySqlConnector. How? #1532

Unanswered
adr-x asked this question in Q&A
Discussion options

Changing from MySql.Data.MySqlClient to MySqlConnector cut the network out total on the box with our MySql server in half.
Does anyone have some intuition that they could share for how this could be possible?

image

You must be logged in to vote

Replies: 1 comment

Comment options

MySql.Data performs a lot of unnecessary (IMO) reads from the MySQL Server when you open a connection, e.g., LoadServerPropertiesAsync https://github.com/mysql/mysql-connector-net/blob/ac184e8a3626790551d381732b08680922882dd9/MySQL.Data/src/Driver.cs#L298 and LoadCharacterSetsAsync https://github.com/mysql/mysql-connector-net/blob/ac184e8a3626790551d381732b08680922882dd9/MySQL.Data/src/Driver.cs#L344C24-L344C46.

MySqlConnector has been highly optimized for performance (see https://mysqlconnector.net/#performance) and tries to reduce network I/O to a minimum.

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

AltStyle によって変換されたページ (->オリジナル) /