Re: reuse connection object with diff username passwor ...
- From: "Miha Markic [MVP C#]" <miha at rthand com>
- Date: Sat, 25 Nov 2006 21:34:00 +0100
Hi Bill,
"William (Bill) Vaughn" <billvaRemoveThis@xxxxxxxxxx> wrote in message news:e9lzFmLEHHA.4112@xxxxxxxxxxxxxxxxxxxxxxx
I disagree. In a Windows Forms application the extra overhead of opening an closing connections hurts performance more than it limits scalability. Reopening a pooled connection is far from free.
It certainly isn't free but it is not much either. Do you have any numbers handy?
The vast majority (over 90%)
of these applications are designed to support 5-500 users. SQL Server can easily handle that number of connections X2.
And certainly only one database is active on sql server? IOW what if there are three databases each with 500 users?
It doesn't matter if you are pooling or not in singlethreaded apps (actually it might if you set min pool size = 0), but it makes all the difference is multithreaded ones.
Open the connection, leave it
open and serialize the operations. I've also seen successful apps where the layered forms open their own connection.
What about multithreading? Are you going to have a connection per thread?
--
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/
.
- Follow-Ups:
- Re: reuse connection object with diff username passwor ...
- From: Cor Ligthert [MVP]
- Re: reuse connection object with diff username passwor ...
- References:
- reuse connection object with diff username password?
- From: jtbr
- Re: reuse connection object with diff username passwor ...
- From: jtbm
- Re: reuse connection object with diff username passwor ...
- From: Miha Markic [MVP C#]
- Re: reuse connection object with diff username passwor ...
- From: William \(Bill\) Vaughn
- reuse connection object with diff username password?
- Prev by Date: Re: Catalog of tables in an SSCE database
- Next by Date: Re: reuse connection object with diff username passwor ...
- Previous by thread: Re: reuse connection object with diff username passwor ...
- Next by thread: Re: reuse connection object with diff username passwor ...
- Index(es):
Relevant Pages
|