mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 10:45:21 +03:00
Increase timeout and cache_size
This commit is contained in:
parent
007d65cf0e
commit
bfbe99bc65
@ -207,7 +207,11 @@ class FrigateApp:
|
||||
# NOTE: all db accessing processes need to be created before the db can be bound to the main process
|
||||
self.db = SqliteQueueDatabase(
|
||||
self.config.database.path,
|
||||
pragmas={"auto_vacuum": "FULL"}, # Does not defragment database
|
||||
pragmas={
|
||||
"auto_vacuum": "FULL", # Does not defragment database
|
||||
"cache_size": -512 * 1000, # 512MB of cache
|
||||
},
|
||||
timeout=60,
|
||||
)
|
||||
models = [Event, Recordings, Timeline]
|
||||
self.db.bind(models)
|
||||
|
||||
@ -39,7 +39,11 @@ def manage_recordings(
|
||||
|
||||
db = SqliteQueueDatabase(
|
||||
config.database.path,
|
||||
pragmas={"auto_vacuum": "FULL"}, # Does not defragment database
|
||||
pragmas={
|
||||
"auto_vacuum": "FULL", # Does not defragment database
|
||||
"cache_size": -512 * 1000, # 512MB of cache
|
||||
},
|
||||
timeout=60,
|
||||
)
|
||||
models = [Event, Recordings, Timeline]
|
||||
db.bind(models)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user