diff options
| author | David Schlachter <t480-debian-git@schlachter.ca> | 2026-01-07 22:53:13 -0500 |
|---|---|---|
| committer | David Schlachter <t480-debian-git@schlachter.ca> | 2026-01-07 22:53:13 -0500 |
| commit | 328f2892e01056b809851e5338ef184df5033906 (patch) | |
| tree | 011de90946d2dc6764b7e36ed9f0f25f72b44ce9 /main.go | |
| parent | 3b4dcb36059755149457af0bd401f60f8411c649 (diff) | |
Much faster initial setup
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) |
