by christophilus · 4y ago · 0 comments
I recently ran an experiment with Node and was able to take writes from around 750 / second to around 24K / second just by coordinating them using Node IPC. That is, I had the main thread own the sole write connection and all other threads sent their writes operations to it, thread-local connections were read-only.
It's pretty cool how far you can push SQLite and it just keeps humming right along.
Thanks
[1] https://nodejs.org/api/process.html#processsendmessage-sendh...
I was planning on turning that into a library, but Bun nerd sniped me.
You need the “hey” tool to run the benchmarks[1] the way that I was running them.