Replies: 4 comments 4 replies
-
How does the sqlite database help? Currently my /config folder is mapped to one location with my config file and my /clips mapped somewhere else. I can easily use docker to map my /clips to a network share if I needed too. Wouldn't having your config in a sqlite format make it more complicated to update and maintain than plain text yml file? I could understand using sql if you wanted to do a mass camera update to enable or disable a feature but can't see much use from your suggested scenario. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/blakeblackshear/frigate/tree/release-0.8.0 Database If you are storing your clips on a network share (SMB, NFS, etc), you may get a database is locked error message on startup. You can customize the location of the database in the config if necessary. |
Beta Was this translation helpful? Give feedback.
-
IMHO regarding the docker deployment ... adding a bit more context to the database mapping would greatly help many since its mapped into /media in the provided examples.. By default you map external filesystem to hold clips, event, recordings etc as the container size is locked and any restarts would blow away these files if there was space. Changing the default example to map the to a local storage resource similar to the config.yml mapping and writeable would benefit everyone going forward and prevent the "database is locked" error... |
Beta Was this translation helpful? Give feedback.
-
External database support would be a great enhancement. I recommend adding support for using external databases like mysql and preferably clickhouse as an optional alternative to the sqlite file. I am finding great success using clickhouse to analyze the frigate.db sqlite database for detection rates of people and cars. Using release 0.14.1, I use the clickhouse external table engine to query the frigate.db sqlite file, exposing the frigate database contents to grafana for quick visualizations of detection counts even re-rendering thumbnails is quite easy. The only headache is record volume io with the sqlite file. Direct query of clickhouse native data would greatly reduce the query latency for long time periods. |
Beta Was this translation helpful? Give feedback.
-
Allow sqlite database configuration so there is an option to keep the database on local storage and store clips in different storage like network share. Or allow using existing database service like mySql?
Beta Was this translation helpful? Give feedback.
All reactions