script-lab icon indicating copy to clipboard operation
script-lab copied to clipboard

Consider moving to IndexedDB to have more storage space

Open Zlatkovsky opened this issue 7 years ago • 2 comments

LocalStorage caps out at 5mb or 10mb on most browsers -- whereas IndexeDB can store up to a gig!

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

Also per the link above, there are simpler wrappers around the IndexedDB API.

Note: IndexedDB API is powerful, but may seem too complicated for simple cases. If you'd prefer a simple API, try libraries such as localForage, dexie.js, ZangoDB, PouchDB, and JsStore that make IndexedDB more programmer-friendly.

Zlatkovsky avatar Jan 09 '19 02:01 Zlatkovsky

Putting it into "near future", though it might be a little on the longer-term side of that bucket.

Zlatkovsky avatar Jan 09 '19 02:01 Zlatkovsky

It would be preferable to use indexedDB it's tricky to swap over now because indexedDB requires async calls.

This would avoid the issues we have seen when people have too much in their local storage.

wandyezj avatar Apr 04 '24 21:04 wandyezj