What is better in terms of workload and speed: Search the database or refer to a text (number) on the page?
> What I want:
Less workload and higher initial loading speed of the page.
Question:
Will every ‘look up in the database’ do its own lookup to find the same information? OR will it just do it once?
Would it be better to use a single text (number) element to refer to it?
Example:
‘Text current user’s amount of projects’. All conditionals and lookups will refer to this text, so there is no need to look it up in the database.
Generally WU costs are incurred for the search, then the return of the data. Once a search is loaded there is a smaller additional cost for real-time updates to each piece of data that is updated in the DB. Best practice is to save your lists to a state so you don’t incur realtime data for when searches that return lists are updated (they cost a more than individual real time searches). Unless of course your intention is to have the lists updated in real time.