matlin
matlin
We don't currently have native, non-JS environment support but it's absolutely something we plan to support in the future.
Which version of the Client are you using? This is definitely much slower than expected. You can also try paginating the data (i.e. add a limit) in the meantime while...
Thanks for sharing all this context and digging in on your end. One last thing, do you mind sharing the query you're using and your client setup? It shouldn't be...
Also feel free to [share an export of your performance trace](https://developer.chrome.com/docs/devtools/performance/reference#save) and I'll take a look. Best to keep screenshots turned of though otherwise the file ends up being huge.
Thanks again for providing such a useful (and easy!) reproduction. I think the fundamental issue is that IndexedDB is pretty slow and apparently [has performance issues on Windows](https://www.notion.so/blog/faster-page-load-navigation#:~:text=Before%20SQLite%2C%20we%20relied%20on%20IndexedDB%20for%20client%2Dside%20storage.%20But%20we%20encountered%20storage%20quotas%2C%20a%20number%20of%20bugs%2C%20and%20performance%20concerns%20on%20Windows%20machines%20in%20particular%2C%20which%20meant%20IndexedDB%20wouldn%E2%80%99t%20scale%20with%20Notion%E2%80%99s%20growing%20user%20base.) -- on...
I think creating an adapter for `wa-sqlite` should be pretty straightforward. I'll also test out our non-cached IndexedDB storage adapter and see how it compares for that initial fetch. But...
We also added an optimization to the initialization process that should help your initial query situation. So might just check if the latest version of the client is faster for...
I'm going to close this regarding initial fetching performance with IndexedDB. We'll continue optimizing the IndexedDB performance overall but you can re-open if you see any other issues crop up....
Not as up to date on on the various editors but we've typically found state diffing to be the most straightforward path when integrating with some external system (ProseMirror, Monaco,...
Generally our advice is to use IndexedDB on the Client for a PWA and then SQLite on the server--which works out of the box for Triplit Cloud and the [Triplit...