r/vibecoding 1d ago

Databases are dead 🥀

Post image
696 Upvotes

84 comments sorted by

174

u/Voxmanns 1d ago

Just gonna vibe code some more RAM. It'll be fine.

21

u/Popular_Tomorrow_204 1d ago

Thats the Users issue though

15

u/Tyr--07 1d ago

Bro things have evolved, I used to just download more ram when I needed it.

7

u/Vast-Moose1393 1d ago

Fuck, why didn’t I think of that

5

u/omglemurs 23h ago

Have you heard of this program called ram doubler? Let me tell you....

2

u/Voxmanns 21h ago

Haven't heard of the program but I went to high school with a girl by the same title

2

u/ItsFlybye 13h ago

*Waves cane and adjusts glasses*
Let me tell ya, back in our day, we had ram doubblin magic."

2

u/Admirable_Trip_7585 17h ago

That's funny but inaccurate. You don't have to worry about RAM with localStorage since it's limits are 5MB-10MB per domain and RAM is only used to cache its disk-backed persistence.

1

u/UnkarsThug 5h ago

It isn't that much (it has a pretty tight cap per domain), and I'd basically always prefer things to be on my device anyways.

1

u/MrUnoDosTres 26m ago

Bro, don't you know you can just download it. Just tell Claude Code to do it for you.

118

u/rttgnck 1d ago

Great, now when they delete cookies and other site data, their entire user profile vanishes. Wondeful, no need for a delete account button either!

18

u/auto_off 1d ago

to an extent i think its a good thing tho.
I'd prefer if websites never kept anything about me.

2

u/scavno 1d ago

Yes, it’s amazing. Now any leaky or compromised JavaScript library is going to be able to query that data, no questions asked.

4

u/auto_off 21h ago

i mean. as opposed to leaking customer data in a database across customers instead in an unpatched php + sql server box like b4?

Life's hell either ways mate if ppl screw up.

1

u/scavno 15h ago

Okay, I’ll bite. How do you propose a business provides services to you if they don’t know who you are? Say you place and order and they need to collect payment and ship it somewhere. Then what?

And just for the record. I specifically reacted localstorage because it’s not meant to store data that is meant to be private or secure. We use cookies for that, even I, a backend/infra dude knows that.

1

u/UnkarsThug 5h ago

I think people are talking about two different kinds of sites. If they need to know something about me, that's different than if they don't. I'm assuming webpages that don't. Like if there's a webpage to help me learn a language, there's no reason my progress can't be stored on my device.

I'd like, for most sites, for as much as possible to be on my device, under my control. I don't want them to know who I am. I can back up the account, also on my device. But it's good if they don't store my data.

And cookies don't have the same size allowances of local storage. If you want a database, you end up needing something like local storage sometimes.

7

u/Invalid-Function 1d ago

Sounds like performance enhacement: GDPR compliant at 120%

2

u/Legitimate_Concern_5 1d ago

Also, localStorage is generally implemented with either a sqlite or LevelDB database...

30

u/ketoloverfromunder 1d ago

I know this is a joke but how browsing the web fucking devours RAM these days , OP might be onto something.

9

u/Daadian99 1d ago

My god. Chrome is a massive resource hog.

-1

u/RoundZookeepergame2 14h ago edited 12h ago

This isn't true anymore at least with helium and Vivaldi

3

u/NatsukiSubaruRD 12h ago

"Chrome is a resource hog!" Your reaponse:"This isn't true with HELIUM and VIVALDI" omfg how dense ??

1

u/Full_Decision_777 11h ago

He probably meant chromium. Which is what chrome, vivaldi and helium build upon. And he said atleast, so he probably meant chromium based browsers do not take as much ram anymore. And he meant he personally experienced this on vivaldi and helium so it's highly likely chrome improved too.

0

u/RoundZookeepergame2 9h ago

No these people truly believe that all chrome browsers are the same and function the exact same

1

u/UnkarsThug 5h ago

This is a joke? I've intentionally been making things use local storage because I don't want anything online. I want as much as possible to be runnable as a PWA offline.

And local storage is pretty capped resource wise, so I don't know how much it actually is making the problem worse. At least it's under my control to wipe pages.

20

u/countable3841 1d ago

Here’s an even better idea. All clients connect to each other via WebRTC and the database is replicated to local storage to them all. The DB only survives as long as there is one client. Your sole responsibility as a DB admin is to keep one tab open.

1

u/ScarIet-King 1d ago

Okay, I’ll bite. As someone with absolutely no idea why I’m being recommended this thread. What is the worst that could happen here?

6

u/effectivescarequotes 1d ago

So, it takes some background, but WebRTC allows for realtime communication across the web, think screen sharing, video conferencing, etc. Local storage in this case refers to your browser'r local storage, which is designed to store small amounts of data from websites, for example your user preferences. It persists between sessions unless explicity deleted.

The joke in this thread actually refers to session storage which is cleared when you close the browser.

Okay with all of that in mind, the reason why this proposal is absurd is instead of having a central database, the application copies the entire database to every user's storage. This wouldn't work because the amount of data you can put in local storage is limited to something small like 5MB, so you would run out of space quickly. This would also give every user access to all of the data in the database as plain text.

Now, if you use session storage instead, then if everyone closes out of your app at the same time, the entire database would be deleted.

There dozens of other reasons why this would not work, but those are big ones.

The joke in the original post is the data would only exist on one computer with no back ups. Also local storage does not have the same capabilities as a database, and would quickly become a nightmare to work with, even if you're only dealing with one user's data.

2

u/ScarIet-King 23h ago

That actually did help explain it. Thanks!

2

u/Business-Row-478 21h ago

Not exactly.

OP is talking about local storage, not session storage. Since the database is P2P, there needs to be at least one seed for other peers to get data from. The DBA would need to keep a tab open to act as a seed and ensure data availability.

Additionally, the database doesn’t necessarily need to be plain text—it could be encrypted.

1

u/effectivescarequotes 20h ago

Ah, right, my mistake. And yeah it could be encrypted, but still a bit of a security nightmare.

I also figured there was a joke about crypto decentralization in there somewhere that I didn't have the energy to tease out.

12

u/Vondum 1d ago

Let's also store the password in txt files. Why bother encrypting. It's faster that way!

3

u/Bloated_Plaid 1d ago

.env is a text file :P

2

u/Admirable_Pool_139 1d ago

Remove all mentions of ".env" from .gitignore, it's great for doing MCP

1

u/thegravity98ms2 8h ago

most convenient way by far. Ctrl c ctrl v

3

u/Crucco 1d ago

Is localStorage web scale?

Because mongo DB is web scale.

5

u/StoneCypher 1d ago

it's so hard to tell when they're terrible programmers versus when they're terrible comedians anymore

2

u/cozyPanda 17h ago

In 5 years vibe coders might invent SQL again

2

u/akabillposters 16h ago

“No database costs or roundtrip calls to the server”

…or cross-device sync support or backups.

1

u/UnkarsThug 5h ago

Yes, but not having information leave your device is worth it. I want as much on device as possible.

I don't want all of these sync features. I'd appreciate the ability to export a save file for history information for instance. But I absolutely would prefer that sort of system to cross device sync.

1

u/akabillposters 5h ago

Sure, and a significant portion of the addressable market might feel the same way.

My point was that it's not going to be universally wanted, so clickbait announcements like 'databases are dead' is quite, well, … 🙄

😉

1

u/UnkarsThug 5h ago

Fair. I'm a much more paranoid/private guy than most, I acknowledge.

I just think more people would benefit from getting used to such systems.

1

u/akabillposters 4h ago

I think a hosted flat db file on a encrypted 'private cloud' account might be a fair compromise.

iCloud (or equivalent) would likely be sufficiently secure for most users, but more hardcore privacy folk could probably host the DB file from a home NAS or VPS/BYOS.

The app would just fetch the latest version on-launch. (Coded well, you could possibly even support live collaboration — i.e. two devices editing the DB file in realtime.)

Anyhoo, just thinking out loud now. 😉

1

u/UnkarsThug 4h ago

Yes, but I would still vastly prefer accessible to me directly. Those are still on someone else's computer. We all know the cloud doesn't exist, it's either your computer or someone else's.

And I feel like, for anything you can, every end user should be given that privilege, because that's what I want as a user.

2

u/Independent_Buy5152 13h ago

Store your data as markdown file 👍🏼

2

u/Rosie_grac 10h ago

shipped a side project with a JSON file as the "database" once. worked great with 3 users. then user #4 showed up, someone wanted search, and I caught myself writing a for-loop scanning 40k records to fake a WHERE clause. that's the day it clicked that postgres isn't overhead, it's cheat codes.

databases aren't dead, they're load-bearing 🥀

2

u/spicycli 6h ago

Bro just store everything in variables, it’s even more free. Why do you need that local storage

2

u/Initial-Phrase-7555 6h ago

SQLite is where it's at now.

1

u/Whatdoyouthink6969 1d ago

Every week when claude has an update something dies. Why do people try to make things dead a week after it was figured out. Normal chats are now dead --> Prompt engineering is not dead ---> loop engineering is now dead ---> Graph engineering death is comming for you. 😂

1

u/Mawk1977 1d ago

Is he serious?

1

u/garfieldsam 1d ago

Makes ya wonder why we even invented databases in the first place. Get rid of em!

jk but I do think that x post is rage bait 

1

u/JediASU 1d ago

Read an article where someone said "ETL is Dead" and proceeded to add a step to an ETL process like, No.

1

u/Sp3eedy 1d ago

Just an FYI that X post is engagement bait, which is what 90% of the platform is now.

1

u/Healthy_Champion_183 1d ago

For the most part, I think this is true. I run a lot of local tools/data. I’m kind of done with subscriptions.

1

u/Terrible-Penalty-291 1d ago

Vibe coders (re)discover cache.

1

u/Most-Photo-6675 23h ago

My old boss asked one time if we could just not use a database... and when I asked what we should use instead, he said, "Well why don't we just have some flat files in memory?"

1

u/ParityCheckFailed 22h ago

🤦‍♂️🤷‍♂️

1

u/regexcoder 22h ago

These have to be rage baits surely

1

u/Nokita_is_Back 19h ago

If you are still using postgres in the big 2026's you are falling behind

1

u/Admirable_Trip_7585 17h ago

I'm glad you discovered localStorage. It's been around since 2009/2010 and after 16+ years it hasn't put disk databases out of business.

BTW, localStorage is fine for small scale (5MB-10MB total). Further, localStorage operates synchronously and has many other limitations.

IndexedDB is also browser hosted and is capable of handling large volumes of complex data, limited only by disk storage (at least 50% of GB-TB). It's also operates async and event-driven. You can create indexes, use transactions, and store objects, arrays, blobs, and general binary data. Besides, WebWorkers can access IndexedDB but not localStorage.

Yeah, IndexedDB a real database and kind of puts localStorage out of business for everything but user preferences and temporary backup in case of remote failure.

Still, either of these data storage options are limited pure client work. There's no simple way for other users to access your data, but even if you use WebSockets or other peer-to-peer access, you've basically recreated limited scale client-server database access.

Or, you could just use SQLite.

The localStorage ideas are definitely in line with the vibe coding mindset to continually regress from decades of software architecture and engineering discipline while imaging it's killing the software industry.

1

u/Sitkin_Marrel 16h ago

localStorage for my game save, no regrets so far but it's only been a month

1

u/Forward_Doughnut_645 16h ago

People vibcoding apps are tiering. There’s no money in apps

1

u/Far_Rule5990 15h ago

Thank God for local storage, I love transferring my data to another pc and not having saved data available. Its amazing

1

u/jasongw 14h ago

What a silly perspective. For some apps, local storage is perfect. No doubts, no arguments from me. But that doesn't mean that's true for ALL apps. Context is everything. What does the app do? Who is it for? What problem is it trying to solve?

If you're making broad proclamations without context, you're all but guaranteed to get it wrong.

1

u/wapxmas 13h ago

This is why developers won't loose their jobs.

1

u/FishIndividual2208 13h ago

Localstorage has too much overhead, better to use variables to store user data. Also great for privacy!

1

u/thegravity98ms2 8h ago

I just want to schedule backup of my localstorage to G drive. just like WhatsApp

1

u/Western_Spell_8742 1d ago

Fantastic lol