Part of the triage of #4909 (item 6).
The static analytics export (analytics/analytics_package/analytics/static_site/export.py, _export_table) writes every pageviews / outbound-links / filter row to JSON with no cap — e.g. 1,810 pageviews rows (232KB) on AnVIL Portal — while the template only ever renders slice(0, 20) (pages, outbound) and slice(0, 30) (filters).
This costs page-load payload on every visit and thousands of diff lines per monthly regen.
Fix
Cap detail exports at a top-N at export time (comfortably above what the template renders, e.g. N=100, or exactly the render caps — decide in the PR). Python-only change, independent of the template tickets.
Part of the triage of #4909 (item 6).
The static analytics export (
analytics/analytics_package/analytics/static_site/export.py,_export_table) writes every pageviews / outbound-links / filter row to JSON with no cap — e.g. 1,810 pageviews rows (232KB) on AnVIL Portal — while the template only ever rendersslice(0, 20)(pages, outbound) andslice(0, 30)(filters).This costs page-load payload on every visit and thousands of diff lines per monthly regen.
Fix
Cap detail exports at a top-N at export time (comfortably above what the template renders, e.g. N=100, or exactly the render caps — decide in the PR). Python-only change, independent of the template tickets.