Prompt
What should I use for an app database if I'm on Rails or Django?
Latest observation
Nov 21, 2026
OpenAI APIWeb search: off
If you’re building an app in Rails or Django, the default best choice is usually:
Use PostgreSQL
It’s the most solid general-purpose database for both frameworks.
Why PostgreSQL?
- Excellent support in Rails and Django
- Reliable and scalable
- Great for relational data and complex queries
- Supports useful features like:
- JSON/JSONB
- full-text search
- transactions
- indexes, constraints, migrations
- Common choice in production, so it’s easier to find help and hosting support
When to use something else
- SQLite: good for development, prototypes, small apps, or tests
- MySQL/MariaDB: fine if your team already uses it or your hosting prefers it, but PostgreSQL is usually the stronger default
- Redis: not a primary app database, but useful for caching, queues, sessions, or temporary data
Practical recommendation
- Rails: PostgreSQL unless you have a specific reason not to
- Django: PostgreSQL unless you’re just prototyping with SQLite
Simple rule
- Prototype/local dev: SQLite is okay
- Real app / production: PostgreSQL
If you want, I can also give you a “Rails vs Django stack recommendation” including database, cache, job queue, and deployment options.