SIGN UP
MEMBER LOGIN:
TECHNOLOGIES
Active Directory in VB.NET
ADO.NET in VB.NET
Algorithms and VB.NET
ASP.NET AJAX in VB.NET
ASP.NET using VB.NET
Assemblies in VB.NET
COM Interop in VB.NET
Cryptography in VB.NET
Crystal Reports in VB.NET
Database & DBA
Deployment in VB.NET
Design & Architecture
DirectX with VB.NET
Enterprise Development
Games in VB.NET
GDI+ in VB.NET
General
LINQ with VB.NET
Mobile Dev in VB.NET
Multithreading in VB.NET
Networking with VB.NET
Office and VB.NET
Printing in VB.NET
Remoting in VB.NET
Reports in VB.NET
Security in VB.NET
Silverlight using VB.NET
Speech in VB.NET
Strings, Arrays in VB.NET
Tablet PC
Tablet PC with VB.NET
VB.NET Articles
VB.NET Exception Handling
VB.NET FAQ
VB.NET How do I
VB.NET Language
VB.NET Tutorials
VB.NET Windows Service
VBA
Visual Basic 11
Visual Basic 2010
Visual Basic Language
WCF with VB.NET
Web Controls in VB.NET
Web Dev in VB.NET
Web Forms with VB.NET
Web Service in VB.NET
Windows Controls
Windows Forms VB.NET
Workflow in VB.NET
WPF using VB.NET
XAML in VB.NET
XML in VB.NET
FORUMS
BLOGS
Use of Excel.AddUnique Method in MS Excel to D ...
Use of PPT.ApplyTheme.BackgroundStyle in MS P ...
Use of PPT.InteractWithChartLocation in MS Pow ...
Simple Web Report With Pivot Table and Linq to ...
Print A Chart into a Byte Stream
Using New Audio Player Class With VB.NET
Display Top Ten Percent Item and bottom Ten pe ...
Use of PPT.ConvertTextToSmartArt in MS PowerP ...
How to Find Backup Folder Data Location Using ...
Calendar Control In WPF
ARTICLE
How connection pooling works in ADO.NET
Posted by
Sapna
in
Articles
|
ADO.NET in VB.NET
on
July 14, 2010
Tags:
ADO.NET
,
connection polling
,
pool maintenance thread.
,
reduce database-related overhead
This article is about how connection pooling makes the process of connecting to ADO.NET data sourcse more efficient.
Tweet
2716
0
0
Reader Level:
The basic idea behind connection polling is that a pool of database connections is available to one or more users of a database. When a user attempts to connect to the database, ADO.NET checks to see if an existing connection can be retrieved from a
connection pool.
If a program requests a connection and one isn't available in the pool, a new connection is created unless the maximum number of the connection for the pool are already in use. In that case, the program must wait for a connection to become available.
Each connection pool contains a limited number of connections. Because of that, if a large number of user attempt to access the database using the same connection string, it's likely that some users will have to wait for a connection.
Importance of connection pooling
In developing an application that will run in a Web-based or multi-tier environment, pooling becomes very important. Making connections to the database can be one of the application's most time-consuming activities. Maintaining connections to the database in the resource state of the Web server can create scalability problems because all users are forced through the same connection object (not to mention that Web servers are almost by definition "stateless"). Opening a new connection on every page of a Web server is bad because it's slow. MDAC pooling provides a way to get the best of both scenarios: a limited number of connections (just enough to match your system's current load) without introducing a scalability bottleneck.
Connection pooling programs let you reduce database-related overhead when it's the sheer number of physical connections dragging performance down. This is particularly important on Windows, where system limitations prevent large number of connections.
How does the pool maintenance thread work?
The behaviour of the pool maintenance thread is determined by the value of four properties of the connection pool:
Aged timeout:
The amount of time a connection will be open.
Minimum connections:
The minimum number of connections the Connection Manager will keep in a connection factory's free pool.
Reap time:
How often the pool maintenance thread will run.
Unused timeout:
How long a connection will remain in the free pool before it is closed.
Login
to add your contents and source code to this article
share this article :
How connection pooling works in ADO.NET
Tags:
ADO.NET
,
connection polling
,
pool maintenance thread.
,
reduce database-related overhead
Accessing Excel Databases using ADO.NET
Tags:
ADO.NET
,
Excel Databases
,
ODBC data provider
Related Articles
Understanding Connection Pooling in ADO .NET
Handling ADO .NET Events & Connection Events
Use CommandBehaviour.CloseConnection to return multiple rows
Working with DataView and DataViewManager Events in ADO.NET
OleDb Data Adapters in ADO .NET
post comment
TOP LEADERS
View All
TRENDING UP
Use of Excel.AddUnique Method in MS Excel to Display Unique Numbers in Ranges
Use of PPT.ApplyTheme.BackgroundStyle in MS PowerPoint 2010 to Apply Themes & Backgrounds
Use of PPT.InteractWithChartLocation in MS PowerPoint 2010 to Change Chart Locations
Simple Web Report With Pivot Table and Linq to Entity
Print A Chart into a Byte Stream
Using New Audio Player Class With VB.NET
Display Top Ten Percent Item and bottom Ten percent Item
Use of PPT.ConvertTextToSmartArt in MS PowerPoint 2010 to Convert Text into SmartArt
How to Find Backup Folder Data Location Using GetSpecialLocation in MS OneNote 2010
Calendar Control In WPF
View All
Sponsored by
Become a Sponsor
MOST LIKED ARTICLE
Web based Chat application in VB.NET
Scroll text using timer in VB.NET
Input Controls in ASP.Net
Finding the first and last day of the month in VB.NET
Loading a Form Icon in VB.NET
TAG CLOUD
.NET
ADO.NET
app_themes
ASP.NET
C
C#
Database
Datagrid
Design
DirectoryServices
games
GridView
Images
jquery
MVC
Silverlight
Silverlight 5
Thread
try
tutorials
VB.NET
WCF
Windows Forms
WPF
XML
PREMIUM SPONSORS
Introducing MaxV - one click. infinite control. Hyper-V Hosting from MaximumASP.
Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Nevron Chart for .NET 2010.1 Now Available
The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
Sponsored by
Become a Sponsor