0

This is more a question than a proper issue.

I have implemented the better-sqilite3 npm in an electron app. I have an Android app that uses the Cordova sqlite plugin and I am testing the time running the queries and realize that the better-sqlite3 is 10x slower than the Cordova sqlite plugin.

Is this normal or is something in the code that I need to increase performance?

The app is the same that runs on Android and Electron and the commands are the same.

1 Answer 1

0

The way that I solved my problem was by changing the journal_mode to 'WAL' instead of using the default one because I was using many batch inserts.

More details in this GitHub issue: https://github.com/WiseLibs/better-sqlite3/issues/1323#issuecomment-2616665140

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.