Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1451

NativeDriver.Ping() and NativeDriver.SetDatabase performance overhead in web app (no replies)

$
0
0
As per the current mysql Connector/Net implementation for each get coonection call it is calling MySql.Data.MySqlClient.NativeDriver.Ping() method and MySql.Data.MySqlClient.NativeDriver.SetDatabase(String) internally. As we have ASP.NET web application, for each web request we have near about 25 to 30 calls. So it is above mentioned method which is really performance overhead for our application.
We are using pool connection and we are getting connection from pool but for getting pool connection also it is calling Ping and SetDataBase method is really overhead.
Is there any way to avoid Ping and SetDataBase call for pooled connection?


Regards,
Dipak Pawade

Viewing all articles
Browse latest Browse all 1451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>