The page cannot support the display of 120,000 records

Hi @hillstone,

Without seeing your data I’m not totally sure what’s going on here, but at a size of 120K records it’s going to be one of two things.

  1. Maybe part_df is very large, so your browser is having trouble rendering the page.
  2. Maybe creating part_df is very resource-intensive because your dataset is not indexed on the right fields.

Remember that Streamlit re-runs your script every time something happens on the front-end. So if you have any “greedy” operations that will fill your computer’s memory and CPU, this will cause a consistent slowdown.

You might want to wrap the creation of part_df in an @st.cache function and see if that helps!