I have an external API and I want to show its data in a table as soon as a user enters the page.
What I did so far is:
create a database, each line contains a row on the table.
Most of the data is static, however some fields need to be retrieved from an external API,
So what I do is put under onReady() a loop that queries each item (it gets the end points from the database), and then it updates each field in the database with the current value.
Once the database is updated, its just connecting the table to the database to show new values.
I have a feeling this is not the best way to achieve this result.