Prompt
What should I use if I want a database but don't want a traditional database?
Latest observation
Nov 5, 2026
OpenAI APIWeb search: off
If you want “a database” but not a traditional one, the best choice depends on what you mean by that. Common alternatives are:
-
Flat files — simple JSON, CSV, YAML, or plain text files
- Good for: small projects, configs, logs, lightweight data
- Tradeoff: weak querying, harder concurrency, no strong integrity guarantees
-
Embedded key-value stores — like SQLite, RocksDB, LevelDB, LMDB
- Good for: local apps, mobile apps, desktop tools, lightweight persistence
- Tradeoff: not a full server database, limited relational features
- Note: SQLite is still a real database, but often used as a “non-traditional” choice because it’s file-based and simple
-
Object storage / document storage — store app state as JSON documents in files or a document store
- Good for: schemaless data, prototypes, app state
- Tradeoff: schema drift, harder complex queries
-
Search/index systems — like Elasticsearch or OpenSearch
- Good for: full-text search, logs, analytics
- Tradeoff: not ideal as a primary transactional store
-
In-memory stores — like Redis
- Good for: caching, queues, ephemeral state, fast access
- Tradeoff: persistence is optional and not its main strength
-
Event log / append-only storage — write every change as an event
- Good for: auditability, replay, event-sourced systems
- Tradeoff: more complex reads and reconstruction
If you want the simplest answer:
- Use flat files for very small/simple needs
- Use SQLite if you want simplicity but still want reliability
- Use Redis if you mostly need fast state/cache-like storage
- Use a document store or event log if you want to avoid relational structure
If you tell me your use case, I can recommend the best fit.