im working on a login server in c# with mysql and i've a question: I've seen on the internet that the correct way to use MySqlConnection and doing queries is using the "using" statment like this:
using (SqlConnection con = new SqlConnection(CNN_STRING))
{
using (SqlCommand cmd = new SqlCommand("COMMAND", con))
{
//do something
}
}
Well, if i use this the connection will be closed and opened every time, right? The problem is that opening the connection takes about 200ms, will it take this time every time that i try to do a query?