Bug 6874 - Mechanism to manage size of errors database
Summary: Mechanism to manage size of errors database
Status: VERIFIED FIXED
Alias: None
Product: Error Reporting tool
Classification: Yocto Project Subprojects
Component: Error Reporting Tool (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: 1.9
Assignee: Michael Wood
QA Contact: Bogdan Alexandru Voiculescu
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-10-23 13:53 UTC by Michael Wood
Modified: 2015-09-07 11:26 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Wood 2014-10-23 13:53:13 UTC
We need a mechanism to have the database not grow infinitely. This could be automated culling of the database or a more sophisticated way to reduce the data.
Comment 1 Michael Wood 2015-06-23 10:24:28 UTC
Usage: ./manage.py culldb [options] <size>

Culls the database to size in rows


commit 8333af184aae3ce3211bfd4ee43ce525302ff31a
Author: Michael Wood <michael.g.wood@intel.com>
Date:   Thu Jun 11 16:09:04 2015 +0100

    management: Add command to cull the database
    
    Adds a cron-able command to reduce the size of the database to a
    specified size.
    
    [YOCTO #6874]
    
    Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Comment 2 Bogdan Alexandru Voiculescu 2015-09-07 11:26:36 UTC
verified, commit ea92a0532814be3938c38d8280e11657ce58a79c 
Post/management/commands/culldb.py