I would love to see weekcount
, monthcount
, and yearcount
added to the Statistics module (in node_counter table) in addition the the current totalcount
and daycount
.
weekcount, monthcount, and yearcount are arguably more significant statistics for a large site than daycount, and this added functionality seems quite reasonable for a dedicate statistics module (and would not take very much effort to add).
Why not rely on third-party contrib modules like Statistics Granularity or Statistics Counter for this functionality? Because any kind of third-party implementation like that which extends the node_counter table requires an extra trip to the db for every single page request, which is extremely redundant, and a significant performance hit, since the node_counter table can easily grow huge.
The only other option to avoid this kind of redundancy is to create a contrib module designed to completely replace the statistics module, but this itself becomes extremely redundant and counter productive when we already have a statistics module in core.
Comments
Comment #1
b_sharpe CreditAttribution: b_sharpe at ImageX commentedThis still is a thing and would like to see in most recent versions
Comment #5
quietone CreditAttribution: quietone at PreviousNext commentedStatistics is approved for removal. See #3266457: [Policy] Deprecate Statistics module in D10 and move to contrib in D11
This is now Postponed. The status is set according to two policies. The Remove a core extension and move it to a contributed project and the Extensions approved for removal policies.
It will be moved to a contributed Statistics project once the project is created and the Drupal 11 branch is open.