Skip to content

perf(dashboard): sample large preview tables on the Q1 page - #5

Merged
jackptoke merged 1 commit into
mainfrom
showcase-improvements
Jul 13, 2026
Merged

jackptoke merged 1 commit into
mainfrom
showcase-improvements

Conversation

@jackptoke

Copy link
Copy Markdown
Owner

The Q1 "show the working" panels dumped whole tables — raw_receipts (13.5k nested rows), stg_products (33.8k), and several 13.5k-row intermediate models — via st.dataframe. Serialising tens of MB (incl. nested structs) to the browser spiked memory and crashed the app on Streamlit Community Cloud's small container ("Error running app") while the light overview page loaded fine.

Cap these previews to a 200-row sample with a row-count caption. Peak render RSS drops ~271MB -> ~166MB (in line with the overview). The analytical chart and the small monthly mart are unchanged.

The Q1 "show the working" panels dumped whole tables — raw_receipts (13.5k
nested rows), stg_products (33.8k), and several 13.5k-row intermediate models —
via st.dataframe. Serialising tens of MB (incl. nested structs) to the browser
spiked memory and crashed the app on Streamlit Community Cloud's small container
("Error running app") while the light overview page loaded fine.

Cap these previews to a 200-row sample with a row-count caption. Peak render RSS
drops ~271MB -> ~166MB (in line with the overview). The analytical chart and the
small monthly mart are unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jackptoke
jackptoke merged commit 653f878 into main Jul 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants