Jump to content

One data source for all sessions


Volk65

Recommended Posts

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...