Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Maximum pool size
Message
De
01/10/2010 11:17:02
 
 
À
01/10/2010 11:06:07
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01483453
Message ID:
01483504
Vues:
23
>>>The second link gives the best description of what is going on.
>>
>>I am trying to understand this concept. Right now, I open a connection when the Web site hit starts. During the hit, it can process from 1 to x number of SQL requests. Then, at the end of the hit, I close the connection.
>>
>>So, basically, a connection does not remain opened after the hit. Using a connection pool seems to mean that we add a concept of reusing active database connections instead of creating a new connection with every request. Well, if I close them at each hit, how can it be reused?
>
>In this context 'Close' doesn't mean it is actually closed - just returned to the pool. Likewise 'Open' doesn't neccessarily mean a connection is opened- most often an existing connection from the pool is used. So the overhead for opening and closing after each query is not that large.

So, basically, on the first connection we do, this might take a little longer. Then, on all upcoming hits, doing the same command, the .Open(), will be faster as it reuses something already in memory. So, if I understand correctly, the only thing I would have to change would be to adjust for connection pooling parameters in my connection string. But, if this is to resolve or help at the maximum pool message I got yesterday, I am wondering why doesn't Microsoft make it as a default in the connection string.

Do you have a connection pooling definition in your connection string? If yes, what setting are you using. We are talking here at about 55,000 hits a day, on the server where it happens. Concurrent hits are happening on a regular basis during the day.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform