summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorDavid Schlachter <t480-debian-git@schlachter.ca>2026-01-07 22:53:13 -0500
committerDavid Schlachter <t480-debian-git@schlachter.ca>2026-01-07 22:53:13 -0500
commit328f2892e01056b809851e5338ef184df5033906 (patch)
tree011de90946d2dc6764b7e36ed9f0f25f72b44ce9 /main.go
parent3b4dcb36059755149457af0bd401f60f8411c649 (diff)
Much faster initial setup
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.go b/main.go
index f1598bf..7306df2 100644
--- a/main.go
+++ b/main.go
@@ -24,6 +24,11 @@ func main() {
log.Fatalf("creating table: %s", err)
}
+ _, err = db.Exec("PRAGMA synchronous = OFF;")
+ if err != nil {
+ log.Fatalf("setting risky writes: %s", err)
+ }
+
row := db.QueryRow(`SELECT count(*) as count from words`)
var count int
err = row.Scan(&count)