Skip to main content

connection pooling


Explain about Connection Pooling?

  • Connection pooling is a concept which deals with database connection. A Connection Pool maintain last database connection active state when connection is ideal. Whenever you want to make a transaction with database once again you have to open connection when it is ideal, instead of that connection pooling will maintain open and reusable connections. A Connection Pool is released from the buffer or memory when the last connection to the database is closed.
  • By default Connection Pooling turned on in ado.net; whenever you want to change it off, you have to specify Pooling = false in the connection string .
  • We can specify limit to connection pooling by default the maximum limit is 100.
  • You will specify in connection string.
  • It will improves the performance and scalability of the application
It is managed by a program in ado.net that we called as Pool Manager. This program will maintain different connection request by comparing with maximum limit connection pool ,if number of connection are equal to max limit It will wait for new connection till another connection ideal or time out. If  connection is not in use then manager returns one, else it will create new connection and add to the pool.
Connection pool is managed with different parameters which are specified in connection string those are

   Connect Timeout
Min Pool Size
Max Pool Size
Pooling

Tomorrow will be with  Object Pooling?

Comments

Popular posts from this blog

Shortcut keys inMSDOTNET 2015

when ever we want work with MS.net we have to learn about some keys which can help to improve our work force in development area .i  got some shortcut key in msdn ,You can view all of the keyboard shortcuts for Visual Web Developer. we can create our own shortcuts by doing the following:  on the  Tools  -->  Options ; it will open dialog box  of the Options ,  select  Environment  and then  Keyboard . we have to select the  Show all settings  check box in order to view the  Keyboard  setting. Shortcut Description CTRL+B Switches the selected text between bold and normal. CTRL+I Switches the font style of the selected text between italic and roman. CTRL+U Switches the font style of the selected text between underline and roman. CTRL+SHIFT+L Displays the  Bookmark  dialog box. CTRL+L When text is selected, displays the  Hyperlink  dialog box. ...

Conformation MessageBox

This BLOG POST demonstrate how to use the   MessageBox result in window form programming. to full fill this task we will depend on DialogResult    property in Windows Forms..                   when we are doing windows programming using Csharp ,to show the intermediate result  we will display by messageBox MessgeBox is having one main  function show  .it returns DialogResult Value.when user used  MessgeBox to display the data,user has to click default buttons OK,cancel,Abort,Ignore etc to close  MessgeBox. this we can get from  MessgeBox and it will be saved in  DialogResult variable . DialogResult is consist different button values using ENUM data types . Requirements The following list outlines the recommended hardware, software, network infrastructure, and service packs that you need: ·          Microsoft Visual Studio ...