Volk65 Posted March 25, 2018 Share Posted March 25, 2018 Hi al! Need advice. There is a DB. There is a large directory that is updated rarely. If each session opens data from this directory every time-this is an extra load on the server. The idea is this: 1. To place component to access the directory in the module, ServerModule. 2. Once an hour, on a timer to refresh data from the server. 3 All sessions turn to ServerModule, where the data is already loaded into memory. 4. As a data source in ServerModule I want to use TDataSetProvider.I see one problem (and I don't know what's going to happen) - when a session is started to read data from ServerModule and at that moment triggered a timer to update the data. Is this algorithm a good idea or a bad idea? If there is another (correct) solution, then tell me how to do it correctly. Quote Link to comment Share on other sites More sharing options...
Ron Posted March 29, 2018 Share Posted March 29, 2018 Can you use two providers, where one is always in a ready state? Quote Link to comment Share on other sites More sharing options...
Volk65 Posted March 29, 2018 Author Share Posted March 29, 2018 Don't quite understand the question Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.