Host model load causes unnecessary loads on instantiation
|Assigned To:||Tomer Brisker|
|Target version:||Team Daniel - iteration 6|
|Found in release:||1.13.0||Pull request:||https://github.com/theforeman/foreman/pull/4063|
|Velocity based estimate||-|
The fix for #12634 introduced a PXELoaderSuggestion mechanism that is executed as an `after_initialize` hook. This causes any Host object instantiation to execute this suggestion mechanism, which may lead to up to 3 extra queries per host. However, this is only needed for the host creation form to populate the PXELoader field when choosing OS.