Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: don't crash the table on 1 million rows #1314

Merged
merged 4 commits into from
May 6, 2024
Merged

Conversation

mscolnick
Copy link
Contributor

@mscolnick mscolnick commented May 4, 2024

Fixes #1311

Limit mo.ui.table to 10,000 rows. The problem isn't loading all of them but rather just operating (e.g. sorting) over those rows once in the frontend. I'd argue that displaying over 100,000 isnt that valuable, unless you have search/filtering - which is possible with mo.ui.dataframe.

Copy link

vercel bot commented May 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marimo-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 6, 2024 0:01am
marimo-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 6, 2024 0:01am

Copy link
Contributor

@akshayka akshayka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's clip to even less, say — 10_000. I tried a reasonably sized dataframe, with 10 columns with two strings and 8 ints, and at 100k rows my frontend became sluggish.

Copy link

github-actions bot commented May 6, 2024

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.4.12-dev4

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.

mo.ui.table crashes browser when used with very large dataframe
2 participants