Hey all,
i have some issues here and thought about solutions but your input is needed.
Following situation
: From a second party source i get data which i have to link to my database data (=containers) dynamically. So first of all i query my database and then in the memory i compute the link between the database data and the data i got from the second party source (
calculateLinking()
).
The idea
: At the moment this is done at the start for every user after login. Because this results in heavy loading (2 min) i want to do the linking when the application starts the first time and after log in i just link the data reference to the user. In the background there should be periodical update of these data.
The questions
:
- Is this a good idea to handle this situation?
- The application
init()
method gets called whenever a user starts the application (is this correct?). So this could not be the proper place to start the linking. Where can i add mycalculateLinking()
method when i just want to do it at the first start of the application? The periodical update should be done by a background thread.
Hopefully i provided you with enough information so that you can help me. Otherwise please flame me to post more input.
- thx