This commit is contained in:
BroodjeAap 2023-02-19 12:53:23 +00:00
parent 626e11083f
commit 479dad4dae

View file

@ -140,7 +140,8 @@ For example, if you want to set up GoWatch with Browserless, Apprise and a Postg
By default, GoWatch will use an SQLite database, stored in the `/config` directory for the docker image.
If you have only a few watches with schedules of minutes+ then SQLite is probably fine.
But with more watches, especially with shorter schedules, Gorm will start logging warnings about `SLOW SQL`, which are just warnings, but at that point it's probably better to switch to another database.
But with more watches, especially with shorter schedules, Gorm will start logging warnings about `SLOW SQL`.
Which are just warnings, but at that point it's probably better to switch to another database.
You can use another database by changing the `database.dsn` value in the config or `GOWATCH_DATABASE_DSN` environment variable, for example with a PostgreSQL database:
```
@ -176,7 +177,7 @@ services:
### Pruning
An automatic database prune job that removes repeating values, this can be scheduled by adding a cron schedule to the config:
An automatic database prune job that removes repeating values, this can be scheduled by adding a cron schedule to the config or with the `GOWATCH_SCHEDULE_DELAY` environment variable:
```
database:
dsn: "/config/watch.db"