how do i see which setting is controlling pageview event growth?

I’m trying to track down why the pageview events table is growing faster than expected on a site that has been up for a while. I already checked the obvious retention stuff, but I want the exact setting or code path that decides this.

Is there a built-in limiter, or do I need to handle it somewhere else? I’m comfortable editing config, but I need to know where the behavior starts.

Tagged:

Best Answer

  • On the Discourse side, check the browser_pageview_events related site settings first and confirm what is being collected at all. Then look at your cleanup jobs and the scheduled rake tasks that prune old rows. The growth can appear unbounded if collection is enabled broadly but pruning is not running, or if a custom job has stopped. If you are on a recent release, also verify that you are not double-counting from both the regular pageview tracker and a custom integration. The fix is usually a combination of reducing collection and restoring the cleanup task, not one magic toggle.