You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my case, it's already 1million records in database. I got 504 timeout.
I think, could be an option to delete this database recored, when status is unchanged and long time ago or yaml_file is prouned?
sqlite> select count( * ) from reports where state='unchanged' and yaml_file='pruned' ; count( * ) 1218629 sqlite> delete from reports where state='unchanged' and yaml_file='pruned' ; sqlite>
The text was updated successfully, but these errors were encountered:
It is already possible to update the database to remove the reports which are unchanged, via puppet-summary prune -unchanged, which was added as a result of #42. But I guess your bug-report is basically suggesting that the sheer size of the database is causing problems?
In that case I'd be inclined to either :
Suggest users use sqlite to do a deletion, almost as you have done.
Suggest we add a new puppet-summary sql filename.sql
The latter would just load and execute the contents of the named file against the SQLite database, removing the need for sqlite3 to be used manually.
That said I'm not really spending any time on this project at the moment, as noted in the last release announcement I no longer run puppet and prefer to spend my non-paid time working on projects I do use. I should probably make this clear in the README - though I don't want to mark the project archived in case any users to submit bug-reports, or pull-requests.
In my case, it's already 1million records in database. I got 504 timeout.
I think, could be an option to delete this database recored, when status is unchanged and long time ago or yaml_file is prouned?
sqlite> select count( * ) from reports where state='unchanged' and yaml_file='pruned' ; count( * ) 1218629 sqlite> delete from reports where state='unchanged' and yaml_file='pruned' ; sqlite>
The text was updated successfully, but these errors were encountered: