Python & SQLite3

I am using sqlite3 in my discord bot python code. And I thought, will the file with the database be saved when the application is restarted? I have a free plan because the bot is for fun, not serious development.

Hi there,

Thanks for reaching out.

All instances have ephemeral filesystems, meaning any files written to them after they boot will be lost when they next restart. If you want to persist a SQLite DB file you’d need a Render Disk.

If you wanted a free database, Render offers a free Postgres instance. But it’s limited to 90 days of use.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.