Javier Suero Santos
Javier Suero Santos

Reputation: 572

Connection pooling in asp.net

I´ve been looking for it yet in stackoverflow without success...

Is it posible a connection pooling in asp.net? Is it worthwhile? How?

Upvotes: 0

Views: 2225

Answers (2)

canistervacuumbagless
canistervacuumbagless

Reputation: 11

by default max pool is 100

Upvotes: 1

Dillie-O
Dillie-O

Reputation: 29755

It is actually really simple, simply add the following parameters to your connection string and (either in code or in the web.config) and ASP.NET will pick up the rest:

Min Pool Size=5; Max Pool Size=60; Connect Timeout=300;

Note: The Connection Timeout is in seconds and is not required.

Upvotes: 3

Related Questions