IndexedDB for storing local data

@pirijan Have you considered IndexedDB for storing data locally instead of localStorage

IMO RoamResearch is using it for storing large data with high performance.

I faced some lag with 500 cards in a Kinopio space.

2 Likes
2 Likes

I’ll look into that

Edit: looks like safari 14 support isn’t quite there yet https://caniuse.com/?search=indexdb

2 Likes

I think its supported, but there might be a bug on initial load!

Yeah, I do as well. But I wonder whether if localStorage performance is what slows spaces with lots of cards down. have you measured that, @pirijan?

My understanding of IndexedDB is that it’s a mechanism for storing app data more persistently. You can use it with web workers, so you can do things async. But on the topic of IndexedDB and performance, I just saw this project by James Long, born out of his frustration with IndexedDB, esp its performance: A future for SQL on the web

1 Like

I haven’t measured anything , that would be a pre-requisite before doing more. That said there are bigger bottlenecks to look into

2 Likes

My money’s on the DOM

2 Likes

Now I’m going to stand with you :smiley: