asp.net - Singleton issue of provider model -


is singleton requirement of provider performance hit ? because database read/write opertions must taking place through singleton. wouldnt issue multiple users doing read/write operation in site blogger.

you should definitly use connection pool, , limit max number of connections 200 depending on hardware , traffic.

http://ondotnet.com/pub/a/dotnet/2004/02/09/connpool.html

const string connstring = "server=localhost;" +                              "uid=user;" +                              "pwd=secret;" +                              "database=northwind;" +                               "min pool size=50;" +                              "max pool size=200";    

further tips regarding performance:

http://msdn.microsoft.com/en-us/magazine/cc163854.aspx


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -