So I have some great dashboards built. However, I have a lot of inject nodes running every few seconds to query a database and display data.
My question is, is there something I can do to check if someone is actually viewing the dashboard page and if so, then run the inject queries.
Right now I am chewing up CPU and RAM by doing all there queries if someone is looking at the dashboard or not.
I am thinking a websocket...but have no idea how that works so any suggestions or examples would be fantastic.