Project

General

Profile

Actions

Bug #8565

closed

report::expire is running very slowly

Added by Chuck Schweizer over 9 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Reporting
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

The fix included in #1592 has made report::expire very slow

Expire 5 day old reports (runs every 30 minutes)
Pre fix: 2.5 minutes
Post fix: 21 minutes

Expire 1 day old non eventful reports (runs every 30 minutes)
Pre fix: 2.5 minutes
Post fix: 21 minutes

Most of the time seems to be spent in Postgres deleting the records in the post fix report.rb. I will be working on getting more data added to this ticket.


Related issues 3 (1 open2 closed)

Related to Foreman - Bug #1592: report::expire errors with millions of recordsClosedOri Rabin04/30/2012Actions
Related to Foreman - Bug #8316: Removing a long-standing host creates huge transactionClosedDaniel Lobato Garcia11/07/2014Actions
Related to Foreman - Refactor #8798: Reports.expire uses an unnecessary join on logs New12/28/2014Actions
Actions

Also available in: Atom PDF