----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: SBK Message 3 in Discussion Why don't you consider using a connection pool? S.B.Kar_______________ Senior Software Engineer GMSBU Wipro Technologies Ph # 8520408 Extn: 82239 -----Original Message----- From: spprivate [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 07, 2004 4:42 PM To: BDOTNET Subject: Doubt in Design of data layer .. New Message on BDOTNET Doubt in Design of data layer .. Reply Reply to Sender Recommend Message 1 in Discussion From: spprivate Hi Group, I am designing a data layer.I used factory pattern since I need a generic data layer compatible to major databases.Now my question is.. Consider this scenario Scenario1 *********** 1.My component will create a new database connection object 2.It will open the connection 3.Manipulate 4.Close the connection 5.Destroy the connection object. This happens for each database call. Advantage I never hold the resources. Disadvantage Time constraint,as every time new object created and connection established. Scenario2 *********** 1.My component will create a new database connection object 2.It will open the connection 3.Manipulate 4.Close the connection 5.Doesnt destroy the connection object as long as the session persist. When ever database call occurs,just opens the connection and use,then release. Adv faster Disadv burden on resource will be high Poss Deadlocks. More over Oracle has a problem where in even if we release the connection from code manually,it gives error "Cannot exceed more than 50 Connections " or something like that.We havent found a solution for that as well. Taking all this into consideration,to build a scalable ,high performance application,what is the best approach.. Phew pretty long post..Come on chaps.. Cheers Satheesh View other groups in this category. ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/BDotNet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
