Reputation: 12912
For my electron app, I'd like to make sure that writing to it's database (IndexedDB) still functions, even when the user's hard drive is full for some reason. Is it possible to somehow reserve disk space for this purpose?
Upvotes: 0
Views: 222
Reputation: 118691
Sure, pre-insert rows and then update them later, rather than insert them when you need them. Mind, depending on the IndexedDB implementation, this may or may not work (depending on how updates are done).
So, you'll want to test it first.
Upvotes: 1