Please, does anyone know how to implement multi-user support in this Streamlit application? The data frame needs to be modified by multiple users, and when testing with multiple users, it becomes slow and some data is deleted when trying to save it. I get the data from MySQL, and the users come from Streamlit’s secrets.toml file. I have several functions, the main ones being retrieving and saving data.
This is my editable table
df_data = st.data_editor(stylerd, column_config={'id': None,'Guardar': st.column_config.CheckboxColumn("Guardar",),'xx1': st.column_config.TextColumn("xx1", max_chars=7), 'xx2': st.column_config.TextColumn("xx2"),'xx3': st.column_config.TextColumn("xx3"),'xx4': st.column_config.TextColumn("xx4"),'xx5': st.column_config.TextColumn("xx5"),'xx6': st.column_config.TextColumn("xx6"), 'xx7' : st.column_config.TextColumn("xx7"),'xx8': st.column_config.DatetimeColumn("xx8", format="YYYY-MM-DD HH:mm:00"),'xx9': st.column_config.DatetimeColumn("xx9", format="YYYY-MM-DD HH:mm:00"),'xx10': st.column_config.NumberColumn("xx10", disabled=True)}, disabled=["id","TMR","Tiempo_Efectivo", "Solo_CONTRATISTAS","Tiempo_Decimal","Tiempo_Efectivo_Decimal","xx2","xx3","xx4","xx5", "xx7", "Estado_xx7"], num_rows= "dynamic")
confirmar = st.checkbox("Estoy seguro de guardar los cambios.")
submit = st.button("💾 Guardar cambios")
I would really appreciate it if you could help me.