Skip to content

chore: cap static analytics detail exports at top-n rows #4924

Description

@frano-m

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions