r/Hacking_Tricks • u/East-East-794 • 7d ago
How much does the refresh interval change the cost of running a real-time dashboard?
Take a hypothetical dashboard with six widgets, each sending a separate query every ten seconds. That's 2,160 queries per hour for one active viewer before any shared caching. A page that looks pretty small can generate a lot of database work.
I'm wondering how people budget for this when the underlying events are arriving continuously. BigQuery's result cache has restrictions when source tables change, so I wouldn't assume every repeated refresh is free.
For people running live dashboards, what made the biggest difference to the bill? Was it a slower refresh interval, combining widget queries, or computing shared summaries before anyone opens the page?
4
u/Leading-Deer-7084 7d ago
Precomputing shared summaries matters most, because then each refresh costs the same no matter how many people have the page open, whether you use BigQuery or something like RawTree.
1
u/Few_Magician9498 7d ago
Precomputing was the big one for us. We had a job writing summaries to a small table every minute and the dashboard only read from that, bill dropped like crazy
1
u/Level_Investment4922 7d ago
Honestly most people staring at a "real time" dashboard wont notice if it updates every 60s instead of 10s. We went to 30s and nobody said a word
1
u/ProfessionalShirt225 7d ago
Combining widget queries helped a bit but the real killer was viewers leaving tabs open overnight.
1
u/Sad-Cup-1271 3d ago
Pre-computing summaries made the biggest difference for us by a mile.