Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Where should i set my database connection
#4
Maybe the 'correct' solution can be the SUM of the above recomendations.
It is prefered not to use Shared Stuff. Not because IW Can't handle it, It does, but if you dont have spcecial care, it can let your cod to lock or slow down the application performance.

Let each Session has its own instances and release them. So Create a Class that will use that stuff and instantiate it in the UserSession datamodule. It could be another datamodule, for example a datamodule that contains your connection and datasets, with this you keep the UserSession Object cleaner and only add methods to instantiate and release your custom classes.
Reply


Messages In This Thread
RE: Where should i set my database connection - by fduenas - 07-14-2018, 01:11 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)