Closed dodeeric closed 1 month ago
https://chatgpt.com/share/325b95d0-f58d-415b-b07f-2937bfa1a329
When deploying an application on Streamlit Community Cloud, a common issue users encounter is that their application's database, such as Chroma DB, gets wiped after a reboot. This usually happens due to the following reasons:
Ephemeral Storage: Streamlit Community Cloud provides ephemeral storage for deployed applications. This means that any data stored on the server's local file system can be lost when the server is restarted, updated, or redeployed. As a result, if Chroma DB or any other database is storing its data on the local filesystem, it will be wiped when the application restarts.
Stateless Applications: Streamlit Community Cloud treats applications as stateless by default. This implies that applications should not rely on the local state to persist data between sessions or reboots.
but not in github codespace