Skip to content

Add option to delete database record if status is unchanged and yaml_file is pruned #81

@yorks

Description

@yorks

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions