Hi everyone,
I made a table in html that reads a table from a postgres database
(easy part). The postgres database grows every time an earthquake
occurs. What is the best way to keep the table updated automatically,
each time a new earthquake is added to the database? (I mean, not having
Another way to do this is to have an ajax call on timeout to an update
endpoint, if there is an update inject that update on the page (or refresh
it).
Some js examples (both short/long polling):
https://stackoverflow.com/questions/42825972/update-html-when-change-is-noticed-in-mysql-database