Replies: 1 comment 5 replies
-
I don't know directly of any issues with availability, but I'm not doing any monitoring of a large user base on a variety of platforms over a long period of time with very large datasets either - I don't do any monitoring, so my lack of knowledge is not very informative. I haven't heard or experienced any problems with IndexedDB just hanging, except that deleting a large database can take some time (but eventually resolves as far as I have seen). Hanging sounds likely to be a browser-specific problem - are you seeing it across different browsers? I have heard reports of browser storage disappearing, even with persistent storage requested. Here's a case using OPFS with OSW. That forum might be another place for you to survey, probably has more eyeballs than this one. If you have a repeatable test case for IndexedDB hanging, I would recommend filing browser bugs if you haven't already. If/when you do, please post links here. |
Beta Was this translation helpful? Give feedback.
-
Thanks for creating this great project. Here are some background of this question:
I'm investigating a SQLite WASM implementation for a million-user product. Our team has tried to use indexeddb to store our kinda-large application data before. However, we have found some availability problems in previous years.
The most significant problem we have encountered is hanging. That means the returned
Promise
ofdb.open
and other operations hangs without any response. The only thing we can do is to set a timeout. About 1-3% of our user can encounter this issue.Luckily we have found a rescue which may not be a rescue at all. Delete the database! Of course, all the application that will be lost.
We also find that this problem can stably reproduce by consistently writing a lot of data in the indexeddb. It seems like a "disk is full" issue. However there seems no way to identify this situation, nor truly rescue the application data.
Here is the question: How about the availability of SQLite WASM implementations, including different vfs of wa-sqlite, and official SQLite wasm build? Is there any report on this kind of problems?
Beta Was this translation helpful? Give feedback.
All reactions