The short answer
For a free PostgreSQL database, Neon and Supabase give the most room. For MongoDB, Atlas M0 gives 512 MB. For a tiny Redis cache, Redis Cloud’s free database holds 30 MB, and Bothosting’s Spark plan runs a Redis deployment with 256 MB of RAM. Free databases pause, expire or skip backups. A bot that stores members’ data should have a backup plan from the start.
Free database tiers
| Provider | Engine | Free storage | Sleep or expiry | Backups on free |
|---|---|---|---|---|
| Neon | PostgreSQL | 1 GB per project, 100 CU-hours a month | Compute suspends after 5 minutes idle and resumes on connect | 6-hour restore window |
| Supabase | PostgreSQL | 500 MB per project, 2 active projects | Paused after 1 week of inactivity | No automatic backups |
| MongoDB Atlas | MongoDB | 512 MB (M0) | Free forever; up to 100 operations a second | Not available |
| Redis Cloud | Redis | 30 MB | Always free | Not stated |
| Render | PostgreSQL | 1 GB | Expires 30 days after creation | None |
| Bothosting Spark | Redis | 256 MB RAM, 512 MB storage, uses the free deployment | Renew every 7 days | hourly, 24 hours kept |
Should the database live next to the bot?
A database in another provider’s region adds a network round trip to every query. Your bot also depends on two accounts staying active. On a paid Bothosting plan, the bot and its PostgreSQL, MySQL, MongoDB or Redis deployment share one account pool. For example, Circuit: $3.25/month for 2 GB RAM, 100% CPU, 8 GB storage and 4 deployments can hold a bot, a PostgreSQL database and a small website. Database backups run every 15 minutes.
A free external database is still a good choice while you learn. Save its connection string as a secret in Variables, never in your code. A pausing database adds a delay to the first query after it wakes, so keep a timeout and retry in your driver.
Pick by what your bot stores
- Per-server settings and small tables: SQLite on the bot’s own disk, or PostgreSQL. See SQLite or PostgreSQL.
- Documents with a changing shape: MongoDB. See saving chat preferences in MongoDB.
- Cooldowns, caches and rate limits: Redis with key expiry. See expiring Redis keys.
Engine sizes and minimum allocations are on the database hosting page.
About this comparison
This comparison is published by Bothosting (bothosting.dev), one of the providers compared. Figures for Neon, Supabase, MongoDB, Redis and Render come from their public pages, read on 20 November 2026. They are not independent benchmarks. Check each provider’s current page, tax and checkout total before you buy.