Hi, just a query on work units and load time.
Lets say I have 1 User db and 1 Company db (with a co name field). And also a reusable element header which is common throughout.
When the user logs in we know ‘current user’s /company’s/ co name’ through the relationship.
I have 2 possible ways of calling the company name;
-
when the header loads (on page load) the company name is stored in a State (of the header) called say ‘coName’. As the header is common, this State can be called at any point in the app.
-
or I can call ‘current user’s /company’s/ co name’.
Both work equally well so my questions is: which method uses less work units and which method would load faster or are both methods equal?
I assume the common header has to load each time a new page is selected or a refresh is used in a workflow.
What would be good is to be able to set certain common States at user login rather than resetting them each time the header loads.
Thanks for any help…