5 ms·
I was evaluating local storage solutions a while back and I tried setting up PGlite, but unfortunately I couldn't get it to work in Next.js with Turbopack in a
by RichardChu 10mo ago
I was evaluating local storage solutions a while back and I tried setting up PGlite, but unfortunately I couldn't get it to work in Next.js with Turbopack in a web worker.
I've been using SQLite locally instead with wa-sqlite and it's been working great for my use case so far. It's also more lightweight.
- eduction 10mo agoHow are you measuring "lightweight" here, what do you mean by it? (Not doubting your claim this just seems one of those words that means many different things depending on the context.)
- RichardChu 10mo agoPrimarily bundle size. Pglite is a 3 MB binary, SQLite is <1 MB.