Closed
Bug 1603229
Opened 5 years ago
Closed 5 years ago
Delete pushes older than a year
Categories
(Tree Management :: Treeherder: Infrastructure, defect)
Tree Management
Treeherder: Infrastructure
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1599859
People
(Reporter: armenzg, Unassigned)
References
(Blocks 1 open bug)
Details
There's currently 400k pushes older than a year [1]. Most of them should not have any related data to it but I could be wrong. I believe deleting a push also deletes all associated data to it [2].
Deleting pushes & related data older than a year will probably simplify the code for cycle_data
around performance data.
[1]
>>> len(Push.objects.filter(time__lt='2018-12-11 20:00:00.000000'))
411763
[2]
Push.objects.filter(time__lt='2010-01-11 20:14:59.000000')[0].delete()
(1, {'model.Commit': 0, 'perf.PerformanceDatum': 0, 'model.Push': 1})
Updated•5 years ago
|
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•