#3961 - Probabilistic and Logarithmic update of view counts

Identifier #3961
Issue type Feature request or suggestion
Title Probabilistic and Logarithmic update of view counts
Status Completed
Tags

Type: Performance (custom)

Handling member Chris Graham
Addon core
Description Composr maintains various view counts (topic view counts, banner view counts, etc).

Writing to these each view has a performance impact. It should be a very small impact - but on InnoDB they have to do ACID redo logging in ib_logfile0 and ib_logfile1, multiplying the work needed; and on journaled filesystems, maintenance of the filesystem journal. On a busy site with a stressed disk, this may add up. On MyISAM, there is table-level locking, which has its own performance ramifications.

A solution is to reduce our updating of view counts. With a probabilistic model we can reduce updating counts, knowing that they will be statistically similar to the true value if we increase the view tally by the inverse of the likelihood of writing one. To determine the probability of considering a view into the view count we'd do some formula based on the current view count, making sure that the figure is always within some reasonable order of magnitude in terms of accuracy.
Steps to reproduce

Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated