Skip to content

Klov Reporter - Possiblity to maintain max number of launches in database #73

Open

Description

@rajeshpatil74

With Klov reporting, every launch stores the test results in mongodb.

Is it possible to maintain only last 25 or 50 launches in the database, so database size growing can be restricted.
The property should be configurable.

Activity

  1. filipwoz commented on Mar 29, 2021

    @filipwoz

    Or to define some archive rules per project like:

    • Max Days to keep Launches
    • Max Days to keep media in Launches
    • Min numbers of Successful launches to keep
  2. filipwoz commented on Apr 30, 2021

    @filipwoz

    Additionally observed that the new KLOV also has the same issue as the old one:
    When database is growing the performance of loading the reports is continuously falling until it exceeds user acceptance boarder.
    I tried to help myself by deleting KLOV projects of by deleting reports from a given project by date older then this way:

    db.log.remove({$and: [{"project":ObjectId("607954348459090c083dec1f")},{"timestamp":{$lte:ISODate("2021-04-25 00:00:00")}}]})
    db.test.remove({$and: [{"project":ObjectId("607954348459090c083dec1f")},{"startTime":{$lte:ISODate("2021-04-25 00:00:00")}}]})
    db.report.remove({$and: [{"project":ObjectId("607954348459090c083dec1f")},{"startTime":{$lte:ISODate("2021-04-25 00:00:00")}}]})
    
    

    but this should really be a part of the solution to offer deletion of old stuff!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions