adspace


What are object pooling and connection pooling and difference between them?

Answer Posted / Yogendra Pratap Singh

Object pooling is a technique used to reuse objects by keeping them in a pool. Instead of creating new instances each time they're needed, previously used instances are retrieved from the pool and reused. This reduces the overhead associated with object creation and garbage collection.

Connection pooling is a specific type of object pooling, used for database connections. It keeps a pool of open connections to databases so that when a connection is needed, it can be quickly obtained without the time-consuming process of establishing a new one.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which namespaces are necessary to create a localized application?

1142


How to assign Null value to Var?

1064


Why can't we use a static class instead of singleton?

954


How do you inherit a class into other class in c#?

995


What is an abstract class c#?

969


What is expression tree in c#?

998