|
When to use a database vs flat files - an honest breakdown - Printable Version +- TalkativeTurtles (https://talkativeturtles.club) +-- Forum: Technology (https://talkativeturtles.club/forumdisplay.php?fid=2) +--- Forum: Programming & Development (https://talkativeturtles.club/forumdisplay.php?fid=9) +--- Thread: When to use a database vs flat files - an honest breakdown (/showthread.php?tid=133) |
When to use a database vs flat files - an honest breakdown - Zero Two - 07-03-2026 The default answer is always "use a database" but I think that is often wrong for small projects and solo tools. Use a database when:
Flat files are fine when:
The underrated middle ground: SQLite. It is a flat file that speaks SQL. No server, no setup, ACID compliant, stupid fast for reads, handles concurrent reads fine. I reach for it far more than either a full database server or raw JSON. The failure mode I see most often is spinning up Postgres for a project that serves 10 users and has 50MB of data. |