I don’t have a sqlalchemy example, but you can take a look at my postgresql example. Try placing your connection object within your load_data() and decorate with
@st.cache(allow_output_mutation=True)
I don’t have a sqlalchemy example, but you can take a look at my postgresql example. Try placing your connection object within your load_data() and decorate with
@st.cache(allow_output_mutation=True)