ArchiveTeam / terroroftinytown

URLTeam's second generation of URL shortener archiving tools
http://urlte.am
MIT License
69 stars 15 forks source link

Track the number of error reports #62

Open chfoo opened 5 years ago

chfoo commented 5 years ago

Currently, as a optimization, the code only checks the number of error reports by querying max(id) - min(id). This was done because count(id) does a full table scan. It would be better if the count was stored in the database and updated by triggers.

If this is done, the deadman threshold should be tweaked to account for a more accurate report count.