Visual-Communications / fair-housing-pledge

https://fairhousingpledge.com/
0 stars 0 forks source link

Use IndexedDB instead of sessionStorage #132

Open paulshryock opened 3 years ago

paulshryock commented 3 years ago

We're working with large amounts of data and pushing the limits of Web Storage. IndexedDb is a better client-side browser-native solution for large amounts of data.

IndexedDB is a low-level API for client-side storage of significant amounts of structured data, including files/blobs. This API uses indexes to enable high-performance searches of this data. While Web Storage is useful for storing smaller amounts of data, it is less useful for storing larger amounts of structured data. IndexedDB provides a solution.

See more at https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API

Probably use ZangoDB as an interface.