Posts: 21
Threads: 12
Joined: May 2018
Reputation:
0
Location: mongolia
What i trying to do is make connection in servercontroller for connect only when server starts. So far i did it in my forms, actually it was bad every time page render it connects over and over. So i am asking how you guys make connection only 1 time when server starts
Posts: 1,136
Threads: 37
Joined: Mar 2018
Reputation:
30
Location: Limassol, Cyprus
Generally its better to use a datamodule/session level connection for users. ie one per session and use connection pooling. A single connection for all sessions will create a bottleneck.
Posts: 10
Threads: 1
Joined: Mar 2018
Reputation:
0
Yes... create your connection in the Usersession.
Posts: 16
Threads: 6
Joined: May 2018
Reputation:
0
Location: Netherlands
Hi
I use the DataModule features, works well!
Eric