Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request - Database management/Purge History after n days #53

Closed
MissMusic opened this issue Oct 10, 2020 · 3 comments
Closed

Request - Database management/Purge History after n days #53

MissMusic opened this issue Oct 10, 2020 · 3 comments

Comments

@MissMusic
Copy link

With many cameras and a lot of triggers the history database takes a long time to load on startup and also slows down the GUI a lot.
Having the option to purge saved history data after x days would speed up a lot of things, at least in my setup.
History is only relevant for so many days back anyway. The stats could be more interesting over a longer time period, but maybe that data could be saved separately?

@Tinbum1
Copy link

Tinbum1 commented Oct 10, 2020

Isn't their already a setting in the json file "MaxHistoryAgeDays": 14,

@MissMusic
Copy link
Author

MissMusic commented Oct 10, 2020

@Tinbum1 Thanks!
The setting i snamed "MaxLogFileAgeDays" I searched for "history" and couldn't find it.

Changing it to 1 gave a significant performance boost.

@Tinbum1
Copy link

Tinbum1 commented Oct 10, 2020

Your perhaps not running the latest commits from yesterday which is already a lot faster.
"MaxHistoryAgeDays": 14, is definitely a setting in that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants