Replies: 2 comments
-
I should note that similar to other uses, I am really excited that we have a native sqlite implementation in deno now. This greatly reduces permissions needed to run sqlite apps (which was essentially |
Beta Was this translation helpful? Give feedback.
-
We had a few discussions about performance on Discord and yeah... |
Beta Was this translation helpful? Give feedback.
-
I spent a little time today putting together some benchmarks for the different sqlite implementations that exist out there. I am in no way a sqlite expert so these benchmarks are just my best guess at good operations to score. What I found is pretty interesting though https://gist.github.com/andykais/fcecaf8f99260fa08e49e50a2eb46289. What I found was that in the basic case (single process sqlite, no WAL) @db/sqlite and
node:sqlite
are pretty close in performance on inserts and selects. However, when selecting unindexed data, the wasm sqlite library wins out by a lot. That may just be a quirk of the test. The important finding in this test though, was that when enablingPRAGMA journal_mode=WAL
, the ffi sqlite implementation by @DjDeveloperr wins out by a large margin with insertsI'm not exactly sure why this is the case, but its possible that there is some room for performance improvement on the native deno node:sqlite code
Beta Was this translation helpful? Give feedback.
All reactions