im is running on a C # login server with mysql, and I have a question: I saw on the Internet that the correct way to use MySqlConnection and execute queries uses the "use" of the statute as follows:
using (SqlConnection con = new SqlConnection(CNN_STRING))
{
using (SqlCommand cmd = new SqlCommand("COMMAND", con))
{
}
}
Well, if I use this, the connection will be closed and open every time, right? The problem is that opening a connection takes about 200 ms, will it be this time every time I try to execute a request?
source
share