Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
AJAX
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
general knowledge
 ASP.NET
 :) Hot Jobs
 
 :) Latest Articles


  

 
CreamKids


What is connection pooling and its parameter
Question Posted on 19 Sep 2011

Home >> DotNet >> ADO.NET >> What is connection pooling and its parameter




When we are talking about application.Database connection is most important and resource buring task. Opening database connection is time consuming and may be verys slow task.Most of the applications need to execute any query on the database server, a connection need to be established. Connection pooling increases the performance of the applications by reusing the active database connections instead of create new connection for every request.
Connection Pooling is the ability to reuse the database connection for more than one user. That connection might be SQL, OLEDB, ORACLE or whatever. This way of organizing connections in a smarter manner improves performance as the applications do not need to open and close the connection multiple times.
Connection pooling Behavior is controlled by the connection string parameters.
(1)Connection Lifetime - The time of Connection Creation will be compared to the current time. If this period exceeds the Connection Lifetime value that is set, then object pooler destroys the connection. The default value is 0; this will give the maximum timeout for connection.
(2)Connection Reset - To reset the connection after it was take out from the Connection pool. The default value is true.
(3)Max pool size - Maximum number of connections allowed within the Connection pool. The value is 100 by default.
(4)Min pool size - Minimum number of connections allowed within the Connection pool. The value is 0 by default.
(5)Pooling - To set the connection Pooling if it is true, the connection is drawn from the pool or created if no connection available from the pool. The value is true by default.
(6)Connection Timeout - Maximum Time (in secs) to wait for a free connection from the pool. The value is 15 by default.
(7)Incr Pool Size - Controls the number of connections which are established, when all the connections are used. The value is 5 by default
(8)Decr Pool Size - Controls the number of connections which are closed when most of the established connections are unused. The value is 1 by default
0
0



 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


Other Important Questions
Getting Error DataControlRowType does not found in dotnet GridView?
Connection and Disconnected Scenario in ADO.Net
Error illegal characters in path while reading xml from dataset
Code to apply distinct keyword record on dataset table
Define different execute methods of ADO.NET Command Object






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |