Skip to content

Instantly share code, notes, and snippets.

View tanishqkancharla's full-sized avatar
🏠
Working from home

Tanishq Kancharla tanishqkancharla

🏠
Working from home
View GitHub Profile
@pesterhazy
pesterhazy / indexeddb-problems.md
Last active March 27, 2025 12:18
The pain and anguish of using IndexedDB: problems, bugs and oddities

This gist lists challenges you run into when building offline-first applications based on IndexedDB, including open-source libraries like Firebase, pouchdb and AWS amplify (more).

Note that some of the following issues affect only Safari. Out of the major browsers, Chrome's IndexedDB implementation is the best.

Backing file on disk (WAL file) keeps growing (Safari)

When this bug occurs, every time you use the indexeddb, the WAL file grows. Garbage collection doesn't seem to be working, so after a while, you end up with gigabytes of data.

Random exceptions when working with a large number of indexeddb databases (Safari)