Feature Proposal: Preventing WebStatistics from growing big
Motivation
The
WebStatistics topics keep growing and growing. It's not good to have an ever growing file. And the revision number of a
WebStatistics gets larger and larger. This is the case with Main.SiteStatistics as well.
Description and Documentation
If
{Stats}{TopicPerYear} is true, the
statistics script behaves as follows.
It updates WebStatistics
YYYY where
YYYY is the current year instead of
WebStatistics. And WebStatistics shows links to WebStatistics
YYYY topics. If RedirectPlugin is installed, access to WebStatistics causes redirect to the latest WebStatistics
YYYY.
The same thing happens with Main.SiteStatistics.
statistics updates Main.SiteStatistics
YYYY. Main.SiteStatistics either shows the list of Main.SiteStatistics
YYYY or redirects to the latest Main.SiteStatistics
YYYY.
Examples
Impact
Implementation
--
Contributors:
Hideyo Imazu - 2013-06-11
Discussion
Technically accepted by 7 day feedback rule.
I recommend to make this optional. TWiki.org has statistics for a dozen years, with many thousands of revisions, such as
Main.WebStatistics. Visually OK, and the version control system can handle it. Having all in one allows one also to create graphs such as
OneYearSiteStatistics.
As for spec, the
{Stats}{TopicName} configure setting could be enhanced to support
'WebStatistics%DATE%'. I recommend to leave the default just
'WebStatistics'. Consider also
{Stats}{SiteStatsTopicName} for site statistics.
--
Peter Thoeny - 2013-06-18
Good point. This needs to be optional. Otherwise, things depending on the fact that one
WebStatistics has all stops working when the enhancement is rolled out. I plan to introduce
{Stats}{TopicPerYear}. This should cover both
WebStatistics and
SiteStatistics.
The prime reason why I'm proposing this is that you may have top 100 instead of 5. If you have a lot more lines per month, in 10 years,
WebStatistics gets really big. I'm less concerned about the number of revisions.
--
Hideyo Imazu - 2013-06-19
Sounds good.
--
Peter Thoeny - 2013-06-19