Long time to load first sql connection in .NET
Posted
by Shrage Smilowitz
on Stack Overflow
See other posts from Stack Overflow
or by Shrage Smilowitz
Published on 2010-04-09T20:49:15Z
Indexed on
2010/04/10
8:53 UTC
Read the original article
Hit count: 200
For some reason it takes 7 seconds to open a connection to a sql server database for the firt time, subsequent connections takes a second. any idea what could be the reason?
I'm using C# and asp.net
Its after compilation, i essence every time i restart the site, which means every time it needs to actualy create the "first" connection. i understand that setting up connection pooling has overhead, but i have never seen that i should take 7 second to set it up.
© Stack Overflow or respective owner