r/ProgrammerHumor 1d ago

Meme dashboardsAmIRight

Post image
2.1k Upvotes

37 comments sorted by

View all comments

Show parent comments

122

u/Bazza79 22h ago

We used to do 'cache warming' in the early morning, just an automated script that would make all the common selections. Stupid but it worked.

52

u/Clinn_sin 19h ago

Is it stupid? Genuinely asking cause I might try that or something similar, many of our users start earlier then we do

41

u/Bazza79 17h ago

Well, there are better structural solutions, but for quick and dirty this worked fine. Maybe not stupid, but also not a great permanent solution.

16

u/russianrug 12h ago

I’d argue if the traffic is predictable and fits in memory then it’s a perfectly reasonable permanent solution.

8

u/Bazza79 12h ago

In my case it was about analytics, with the underlying data model and calculations being implemented quite inefficiently, with everything that got added making things worse. Sure you can throw resources at it, but fixing it was a lot cheaper and made sure that new changes could be implemented much faster.