Ok, I've updated the hack a little. I've added reporting of the ratio of Original Writes vs. Consolidated Writes.
Email will look like:
Quote:
2395 Total Views (original number of write queries)
170 Threads (new number of write queries)
93% of Writes Avoided [2225 avoided]
14:1 Original Writes vs. Consolidated Writes
|
I use the ratio to tweak the frequency of the updates. A low ratio means updates are occuring too often. There is no "correct" ratio as it depends on the number of threads being updated -- you don't want too many threads being updated at the same time.
IMHO, ratios of less than 5 probably means that updates are too frequent.
(for those using a previous version, only the code has changed -- the db table remains unchanged)