I've setup my application where I have a separate System.Data.SqlClient.SqlDataAdapter for each SQL Server Stored Procedure, all filling datasets at various points throughout the application. At the moment, I have 29 Adapters and one SQLConnection, all in Global.asax.
In the Global.asax.vb, I have the following:
Everything seems to work fine, but I am still in development and have not tested this much for more than a couple sessions hitting the app at one point in time.
If all goes well, this could have the potential for about 200-300 users, so I was hoping to get some feedback on how I've got this setup. Is creating so many DataAdapters and session variables going to cause problems as the number of users increases?
I'm new to this type of design and application development, so any comments/suggestions would be appreciated.
Thanks!
In the Global.asax.vb, I have the following:
Code:
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
Application("conn") = Me.SqlConnection1.ConnectionString
End Sub
Sub Session_Start(ByVal sender As Object, ByVal e As EventArgs)
Session("GroupCreditList") = Me.GroupCreditList.SelectCommand
Session("GroupCreditData") = Me.GroupCreditData.SelectCommand
Session("CustomerData") = Me.CustomerData.SelectCommand
Session("CustomerList") = Me.CustomerList.SelectCommand
Session("FacilityData") = Me.FacilityData.SelectCommand
Session("FacilityType") = Me.FacilityType.SelectCommand
Session("RegionDesc") = Me.RegionDesc.SelectCommand
Session("SegmentDesc") = Me.SegmentDesc.SelectCommand
Session("Booleans") = Me.Booleans.SelectCommand
Session("CardType") = Me.CardType.SelectCommand
Session("CollatData") = Me.CollatData.SelectCommand
Session("CollateralType") = Me.CollateralType.SelectCommand
Session("CollatCheck") = Me.CollatCheck.SelectCommand
Session("CollatMaxCust") = Me.CollatMaxCust.SelectCommand
Session("PreparerList") = Me.PreparerList.SelectCommand
Session("RMList") = Me.RMList.SelectCommand
Session("GridCollateral") = Me.GridCollateral.SelectCommand
Session("GridFacility") = Me.GridFacility.SelectCommand
Session("Leq") = Me.Leq.SelectCommand
Session("GuarClass") = Me.GuarClass.SelectCommand
Session("NonGovGuarType") = Me.NonGovGuarType.SelectCommand
Session("GovGuarType") = Me.GovGuarType.SelectCommand
Session("Percent") = Me.Percent.SelectCommand
Session("GuarData") = Me.GuarData.SelectCommand
Session("GuarFacName") = Me.GuarFacName.SelectCommand
Session("GuarCustName") = Me.GuarCustName.SelectCommand
Session("GridChecked") = Me.GridChecked.SelectCommand
Session("gcMax") = Me.gcMax.SelectCommand
Session("LoginList") = Me.LoginList.SelectCommand
End Sub
Everything seems to work fine, but I am still in development and have not tested this much for more than a couple sessions hitting the app at one point in time.
If all goes well, this could have the potential for about 200-300 users, so I was hoping to get some feedback on how I've got this setup. Is creating so many DataAdapters and session variables going to cause problems as the number of users increases?
I'm new to this type of design and application development, so any comments/suggestions would be appreciated.
Thanks!