Actions
Feature #39298
closedUse bulk insert for new fact values on persisted hosts
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Description
FactImporter#add_new_facts currently inserts each new fact individually via create! inside a loop. Replace with a single insert_all for persisted hosts, reducing DB round-trips by ~94% (108 INSERTs to 6). Compose/parent facts (nil values from StructuredFactImporter) are excluded from bulk insert and handled individually to preserve per-fact error handling.
Updated by The Foreman Bot 5 months ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/10979 added
Updated by The Foreman Bot 4 months ago
- Pull request https://github.com/theforeman/foreman/pull/10980 added
Updated by Anonymous 4 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|6b2a2bc43dfccc6e74718e3e082e6eb7131466cb.
Updated by Ewoud Kohl van Wijngaarden 3 months ago
- Red Hat JIRA set to SAT-45132
Actions