Understanding IndexedDB. The complete guide.
I have been working with IndexedDB for more than 3 years. When I just started, I thought, huh, it's similar to MongoDB, easy-peasy. Quite fast I understood that: The native API is not that easy to use, you need a handy wrapper like Dexie or idb with Promises from Jake Archibald It's quite easy to make IndexedDB slow, especially if you're using Dexie, but that's a separate story. Transactions are fragile and many other things I used native iDB API, prepared the typing for iDB in flow (yup, I'm working in Meta), worked with Dexie and even worked on my own ORM. I kept finding some tricky yet interesting insights about IndexedDB. This article is a complete "What do I know about IndexedDB" guide. Get your coffee, bookmark the page, share / retweet! ❗️ All the examples are available in this codesandbox or github repo. is NoSQL and represents key-value storage DB; don't have fixed schema for ObjectStores: has indexed access. If you want to find the data by key, the key should be defined befor
Explore this link on the map →