I'm using localforage with the indexedDB driver. My indexedDB store is rather large, but I was under the impression that indexedDB never really runs out of space, it just expires old content.
However, a large number of requests to the indexedDB are failing with the error: 'DOMException: Transaction timed out due to inactivity.', after hanging for 60 seconds.
If I just do a simple
function testWrite(n) {
localforage.setItem(`test:${n}`, Math.random().toString(16).slice(2))
.then((v) => console.log(x))
.catch((err)=>console.log(err))
}
for (var x = 0; x < 10; x++) {
testWrite(x)
}
in an incognito window pointed at my webapp, it works fine. If I do the same in the non-incognito window, I get the timeout. The important thing is: I get the same timeout problems if I increase the loop size to something big, even in a fresh session. So it feels like there's some threshold somewhere that's not quite right.