HACKER Q&A
📣 throwaway9103

How has IndexedDB been holding up for you in production?


I haven't found any recent conversations about IndexedDB here on Hacker News so I'd like to bring up the subject again. I'm looking at using it for my next project but I'm looking to get a feel for how stable and reliable it is first.

For those who don't know, IndexedDB is basically a way to be able to store and manipulate lots of data (even gigabytes) on a client's computer through a web browser API, effectively allowing a website to have a client-side database.


  👤 no_wizard Accepted Answer ✓
I’ve used it. There isn’t much to discuss honestly. It’s a bit faster in my experience than local storage is, and it can handle more than just string types natively (like ArrayBuffers).

It also has a concept of versioning that’s really clean.

However, all your data is dead if you ever clear your cache or migrate machines. You should really consider that as a huge downside. Databases have an important use case and you don’t have to just use a SQL solution either.

Something like CouchDB would work fine if you only want some Storage. PouchDB + CouchDB is a good combo That would give you some nice abstractions here without having to put all the onerous on the end user to have some continuity in their data

Also see https://developers.google.com/web/fundamentals/instant-and-o...


👤 notlukesky
What is the reason you think you would need to use it on your next project?

By the way are there any similar projects that already use it at all?