ImmortalDB icon indicating copy to clipboard operation
ImmortalDB copied to clipboard

What's the capacity of IronDB?

Open pmualaba opened this issue 7 years ago • 2 comments

IndexedDB has initial 5MB limitation and whole Harddisk capacity after confirmation (is IronDB handling such confirmation protocols?)

Cookies have a 4KB limit per cookie.

LocalStorage and SessionStorage have 10MB limitiation?

How are these limitations reconciliated in IronDB

It would be nice to have a "capacity / usage" api available in IronDB to monitor the current and available storage capacity.

Thanks!

pmualaba avatar Oct 26 '18 15:10 pmualaba

This is one of my two initial critiques... making another issue for the second.

tracker1 avatar Oct 28 '18 21:10 tracker1

In short, ImmortalDB's capacity depends on the stores used.

For example, if CookieStore is used, which it is by default, storage per key is limited by the browser's cookie storage limits, e.g. 4096 bytes per cookie, 180 cookies per domain, etc.

That said, ImmortalDB is resilient. If a write and/or read to any store fails (e.g. more than 4096 bytes written to a cookie), ImmortalDB will continue to work unimpeded, just with reduced redundancy.

Are you bumping into the storage limits of any of the stores (CookieStore, IndexedDbStore, etc)?

Regardless, it would, incontrovertibly, be useful to note the storage limits of each store. I'll add such notes to the readme.

gruns avatar Dec 04 '18 19:12 gruns