What are object pooling and connection pooling and difference?

Answer Posted / guest

Connection Pooling:-
-Creation is on the same thread, so if there is nothing in
the pool, a connection is created on your behalf.
-There is nothing like minimum value or maximum value.
Object pooling :-
-The pool might decide to create a new object. However, if
you have already reached your maximum, it instead gives you
the next available object. This is crucial behavior when it
takes a long time to create an object, but you do not use it
for very long.
-We can set minimum and maximum values of object pooling.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Who is using .net core?

538


What data providers available in .net to connect to database?

522


What are the new features of Framework 1.1 ?

3822


which methos do you invoke on the dataadapter control to load your generated dataset with data?

557


How do I spawn a thread?

566






Sql Queries: A Table will be given Omiting Duplicate rows and adding a new column

1937


What is func in .net 3.5?

572


Please explain what are an inheritance, polymorphism, and encapsulation?

583


What is interface and abstract class in .net?

557


What is DTS and explain the purpose of it?

603


What are the deferred execution and the immediate execution in linq?

543


Is Driver Script any how related to AOM?

621


Please explain what is reflection and what is it for?

503


Explain difference between panel and groupbox classes using .net?

549


Explain the difference between task and thread in .net?

523