mirror of
https://github.com/syncthing/syncthing.git
synced 2026-03-26 10:11:30 -04:00
While we're figuring out optimal defaults, reduce the page cache size to the compiled-in default. In my computer this makes no difference in benchmarks. In forum threads, it solved the problem of massive memory usage during initial scan. Signed-off-by: Jakob Borg <jakob@kastelo.net>
19 lines
465 B
Go
19 lines
465 B
Go
// Copyright (C) 2025 The Syncthing Authors.
|
|
//
|
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
// You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
//go:build cgo
|
|
|
|
package sqlite
|
|
|
|
import (
|
|
_ "github.com/mattn/go-sqlite3" // register sqlite3 database driver
|
|
)
|
|
|
|
const (
|
|
dbDriver = "sqlite3"
|
|
commonOptions = "_fk=true&_rt=true&_sync=1&_txlock=immediate"
|
|
)
|