You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please consider setting pragma WAL in your introductory documentation (WiseLibs#831)
The performance difference can be several orders of magnitude on even simple tables, and most users won't think to go looking for this.
I've included lines that clarify, and link to your existing documentation on the topic.
Thank you for an excellent tool.
Though not required, [it is generally important to set the WAL pragma for performance reasons](https://github.com/WiseLibs/better-sqlite3/blob/master/docs/performance.md).
47
+
48
+
```js
49
+
db.pragma('journal_mode = WAL');
50
+
```
51
+
46
52
##### In ES6 module notation:
47
53
48
54
```js
49
55
importDatabasefrom'better-sqlite3';
50
56
constdb=newDatabase('foobar.db', options);
57
+
db.pragma('journal_mode = WAL');
51
58
```
52
59
53
60
## Why should I use this instead of [node-sqlite3](https://github.com/mapbox/node-sqlite3)?
0 commit comments