News for hackers. Stuff that matters.
Re:A future for SQL on the web by jacobpedd on Thursday August 12, 2021 @03:49PM (#28160637)
This is incredibly frustrating to read as someone who just spent a week writing logic to dump sql.js queries into json persisted with LocalStorage.

Only mad because it’s so much better in every way.

Re:A future for SQL on the web by jitl on Friday August 13, 2021 @07:43AM (#28167765)
You can’t trust localStorage anyways - it will silently drop some writes in Chrome and Firefox. Some years ago, we used localStorage for queuing writes to the backend and found that concurrent access to localStorage caused data loss - some transactions never came back out of localStorage. One of our engineers wrote a stress test and confirmed the issue. We switched to IndexedDB after that.