mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-03-16 21:07:30 +01:00
Reduce insert pressure in db. Increase sqlite timeout value
Entire-Checkpoint: a1e2931d4deb
This commit is contained in:
@@ -102,7 +102,7 @@ func (sa *SqliteArchive) Init(rawConfig json.RawMessage) (uint64, error) {
|
||||
"PRAGMA journal_mode=WAL",
|
||||
"PRAGMA synchronous=NORMAL",
|
||||
"PRAGMA cache_size=-64000", // 64MB cache
|
||||
"PRAGMA busy_timeout=5000",
|
||||
"PRAGMA busy_timeout=60000",
|
||||
}
|
||||
for _, pragma := range pragmas {
|
||||
if _, err := sa.db.Exec(pragma); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user