mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 10:45:21 +03:00
Enable auto vacuum
This commit is contained in:
parent
5d8bcc0c38
commit
ea7ea018d0
@ -37,7 +37,10 @@ def manage_recordings(
|
|||||||
setproctitle("frigate.recording_manager")
|
setproctitle("frigate.recording_manager")
|
||||||
listen()
|
listen()
|
||||||
|
|
||||||
db = SqliteQueueDatabase(config.database.path)
|
db = SqliteQueueDatabase(
|
||||||
|
config.database.path,
|
||||||
|
pragmas={'auto_vacuum', 'FULL'}, # Does not defragment database
|
||||||
|
)
|
||||||
models = [Event, Recordings, Timeline]
|
models = [Event, Recordings, Timeline]
|
||||||
db.bind(models)
|
db.bind(models)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user