Project

General

Profile

Actions

Refactor #28564

closed

improve fact cleanup performance

Added by Tomer Brisker over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Facts
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

`delete_orphaned_facts` step is very slow, it is loading all fact names and checking if they have fact values associated with them, then trying to also delete fact values unnecessarily.


Related issues 2 (0 open2 closed)

Related to Foreman - Feature #25227: Foreman-rake facts:cleanup batch/rolling supportClosedLukas ZapletalActions
Related to Foreman - Bug #30028: foreman-rake facts:clean fails with foreign key constraint violationClosedTomer BriskerActions
Actions

Also available in: Atom PDF