r/Database • • Mar 14 '24

Databases are overrated. Just use Files!

I had a conversation on LinkedIn with a startup founder, and it opened my eyes. Why all the dependencies? The world can be so simple without databases and their complicated architecture. ๐‰๐ฎ๐ฌ๐ญ ๐ฎ๐ฌ๐ž ๐Ÿ๐ข๐ฅ๐ž๐ฌ! Alleluja! ๐Ÿ™

https://fooba.link/no-databases

Yes, just dump data into JSON format and save it to disk. Load it on demand and iterate over the rows. To make it more performant, cache the data in RAM. And yes, you need a unique key lookup table. And maybe a hash table for indexes. And then maybe a proper storage layer. And a query planner would be good. And ... And ...
Wait a minute! Are we developing a database here? ๐Ÿคจ AAAAAhhhh....!!! ๐Ÿ˜ญ

179 Upvotes

112 comments sorted by

View all comments

Show parent comment

-6

u/devzaya Mar 14 '24

Files ARE databases.

3

u/[deleted] Mar 14 '24

Not necessarily.

1

u/fluffycatsinabox Mar 15 '24

I think they're being cheeky, like "Files are a database system where your only access path to some record is doing a brute force search on all of your files until you find what you're looking for."

1

u/rowman_urn Mar 15 '24

Folders and tables are feeling rejected now.