You've already forked pocketbase
mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-11-24 23:24:00 +02:00
use the nonconcurrent pool for running PRAGMA optimize
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
- Fixed Dashboard page title `-` escaping ([#6982](https://github.com/pocketbase/pocketbase/issues/6982)).
|
- Fixed Dashboard page title `-` escaping ([#6982](https://github.com/pocketbase/pocketbase/issues/6982)).
|
||||||
|
|
||||||
- Other minor improvements (wrapped the backup restore in a transaction as an extra precaution, updated npm deps, regenerated JSVM docs with the recent tygoja changes, etc.).
|
- Other minor improvements (updated first superuser console text when running with `go run`, clarified trusted IP proxy header label, wrapped the backup restore in a transaction as an extra precaution, updated npm deps, etc.).
|
||||||
|
|
||||||
|
|
||||||
## v0.28.4
|
## v0.28.4
|
||||||
|
|||||||
@@ -1365,7 +1365,7 @@ func (app *BaseApp) registerBaseHooks() {
|
|||||||
app.Logger().Warn("Failed to run periodic PRAGMA wal_checkpoint for the auxiliary DB", slog.String("error", execErr.Error()))
|
app.Logger().Warn("Failed to run periodic PRAGMA wal_checkpoint for the auxiliary DB", slog.String("error", execErr.Error()))
|
||||||
}
|
}
|
||||||
|
|
||||||
_, execErr = app.ConcurrentDB().NewQuery("PRAGMA optimize").Execute()
|
_, execErr = app.NonconcurrentDB().NewQuery("PRAGMA optimize").Execute()
|
||||||
if execErr != nil {
|
if execErr != nil {
|
||||||
app.Logger().Warn("Failed to run periodic PRAGMA optimize", slog.String("error", execErr.Error()))
|
app.Logger().Warn("Failed to run periodic PRAGMA optimize", slog.String("error", execErr.Error()))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ func (app *BaseApp) SyncRecordTableSchema(newCollection *Collection, oldCollecti
|
|||||||
|
|
||||||
// run optimize per the SQLite recommendations
|
// run optimize per the SQLite recommendations
|
||||||
// (https://www.sqlite.org/pragma.html#pragma_optimize)
|
// (https://www.sqlite.org/pragma.html#pragma_optimize)
|
||||||
_, optimizeErr := app.ConcurrentDB().NewQuery("PRAGMA optimize").Execute()
|
_, optimizeErr := app.NonconcurrentDB().NewQuery("PRAGMA optimize").Execute()
|
||||||
if optimizeErr != nil {
|
if optimizeErr != nil {
|
||||||
app.Logger().Warn("Failed to run PRAGMA optimize after record table sync", slog.String("error", optimizeErr.Error()))
|
app.Logger().Warn("Failed to run PRAGMA optimize after record table sync", slog.String("error", optimizeErr.Error()))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user