Re: reuse connection object with diff username passwor ...
- From: "Cor Ligthert [MVP]" <notmyfirstname@xxxxxxxxx>
- Date: Sat, 25 Nov 2006 22:28:18 +0100
Miha,
In my idea you must be a fool to use multithreading for one server.
Your performance will in my idea only be slower by the collesions you can
get more easy.
If it is about more servers than the fact you describes are not true, they
have all their own pool.
Just my thought, never tested.
Cor
"Miha Markic [MVP C#]" <miha at rthand com> schreef in bericht
news:586E8AC2-6EAA-49EC-A3C2-94D62FB4A341@xxxxxxxxxxxxxxxx
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: Miha Markic [MVP C#]
- 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
- Re: reuse connection object with diff username passwor ...
- From: Miha Markic [MVP C#]
- reuse connection object with diff username password?
- Prev by Date: Re: reuse connection object with diff username passwor ...
- Next by Date: Re: Column index vs column name
- 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
|