Server does not reuse running sessions
Hi,
using TrsServer and TrsReportExplorerVolume I can see that a running session will always be used only for one time. After TrsServer.timeout seconds the session is removed. Is there any property which have to be set that sessions can be "reused" again. Each session is loading the folder and items list to find the report. At least this is very "expensive"
Best regards
using TrsServer and TrsReportExplorerVolume I can see that a running session will always be used only for one time. After TrsServer.timeout seconds the session is removed. Is there any property which have to be set that sessions can be "reused" again. Each session is loading the folder and items list to find the report. At least this is very "expensive"
Best regards
Comments
Server.TimeOut specifies time in seconds that a session can be idle (no request received from client).
ReportExplorerVolume.DirectoryOptions has properties EnableCaching and RefreshInterval. Default values are True and 60 seconds. RB Server caches the folder/items information in a singleton.
Configure ReportExplorerVolume to use ItemPipeline and ItemTemplatePipeline. This optimizes performance of building the folder/items and loading templates. (See demos for details). It's not 'expensive' if you have this configured correctly.
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
I Googled a bit. DOA and FireDAC both have a feature called 'session pooling' or 'connection pooling'. The concept is that when configured to use pooling, the TOracleSession or TFDConnection object when set to connected will internally reuse a database session. Give that a try. (The DOA web site mentions the feature, there is a TOracleSessionPool component). The Delphi FireDAC docs has details for using connection pooling with FireDAC).
For debugging a crashing issue, try using EurekaLog or MadExcept. I think both can be configured for a multi-threaded server environment. These tools can log detail information, including stack trace when an exception occurs).
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com