mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 10:45:21 +03:00
Formatting
This commit is contained in:
parent
183b1e7126
commit
4ad2f62ba8
@ -210,7 +210,7 @@ class FrigateApp:
|
|||||||
pragmas={
|
pragmas={
|
||||||
"auto_vacuum": "FULL", # Does not defragment database
|
"auto_vacuum": "FULL", # Does not defragment database
|
||||||
"cache_size": -512 * 1000, # 512MB of cache,
|
"cache_size": -512 * 1000, # 512MB of cache,
|
||||||
'synchronous': 'NORMAL', # Safe when using WAL https://www.sqlite.org/pragma.html#pragma_synchronous
|
"synchronous": "NORMAL", # Safe when using WAL https://www.sqlite.org/pragma.html#pragma_synchronous
|
||||||
},
|
},
|
||||||
timeout=60,
|
timeout=60,
|
||||||
)
|
)
|
||||||
|
|||||||
@ -40,9 +40,9 @@ def manage_recordings(
|
|||||||
db = SqliteQueueDatabase(
|
db = SqliteQueueDatabase(
|
||||||
config.database.path,
|
config.database.path,
|
||||||
pragmas={
|
pragmas={
|
||||||
"auto_vacuum": "FULL", # Does not defragment database
|
"auto_vacuum": "FULL", # Does not defragment database
|
||||||
"cache_size": -512 * 1000, # 512MB of cache
|
"cache_size": -512 * 1000, # 512MB of cache
|
||||||
'synchronous': 'NORMAL', # Safe when using WAL https://www.sqlite.org/pragma.html#pragma_synchronous
|
"synchronous": "NORMAL", # Safe when using WAL https://www.sqlite.org/pragma.html#pragma_synchronous
|
||||||
},
|
},
|
||||||
timeout=60,
|
timeout=60,
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user