|
|
|
|
|
by koliber
699 days ago
|
|
Reduce how often something runs and the amount of work it does when it does run. Sometimes, things are done too often, or process unnecessary data. I once had a project where a SAP system was crawling and literally causing company-wide stoppages. We found a job that literally ran every minute of every day and it processed a table that contained a few thousand tasks. This was something that could be done once per hour, and only during business hours. Furthermore, it was re-processing thousands of records each time it ran. In reality, after a record was processed once, it could be deleted from the table. We emptied out the table, and scheduled the job to run hourly. The whole company noticed an immediate improvement. This pattern happens a lot. Someone builds a polling system that hits the server once a second in order to see if a task finished. A cron job runs every 5 minutes. All data is processed in a daily job, instead of doing a 24 hour cutoff. The world is filled with computers doing useless work. Mostly, no one notices. |
|
I ask business how often should something be updated - they say “real time” (not going into details what real time means really) - it is hard to explain processing all data all the time so everything is fresh takes forever….
After couple of months it turns out they never ever open their “super important dashboard” or do it once in 6 months.
Great after a year of bogging down everything I can clean up and make jobs run once a day instead of once a minute because now it is acceptable.