spacedrive icon indicating copy to clipboard operation
spacedrive copied to clipboard

[ENG-685] Sqlite Multithreaded

Open oscartbeaumont opened this issue 2 years ago • 4 comments

IDK if this is actually gonna help but it can't hurt.

oscartbeaumont avatar Jun 06 '23 11:06 oscartbeaumont

ENG-685 Sqlite multithreaded

Try and sort this out once and for all

linear[bot] avatar Jun 06 '23 11:06 linear[bot]

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
spacedrive-landing ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 20, 2023 8:10pm
spacedrive-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 20, 2023 8:10pm

vercel[bot] avatar Jun 06 '23 11:06 vercel[bot]

We already enabled the WAL pragma on SQLite?

fogodev avatar Jun 06 '23 16:06 fogodev

I tried using pragma's in a raw execute statement but Prisma doesn't like it due to something about its return type. From the upstream issues I am fairly sure the param I have set here will make it so each query waits instead of just erroring if it can't acquire the DB lock.

oscartbeaumont avatar Jun 12 '23 05:06 oscartbeaumont